Stale-backup alerts, per-server alert limits, and update runs from the Updates page
- Backups: a guest whose newest backup is older than its limit is an alert (backup kind), in the daily backup message, the digest and /metrics (homelab_backup_guests, ..._last_age_seconds) - Per-server thresholds (servers.thresholds, migration 0030): offline minutes, disk percent, forecast window, backup age, and per-disk limits or "leave alone"; applied everywhere the global ones were; saving clears the alerts cache - Update runs (update_runs, migration 0031): Update... on the Updates page puts the server under maintenance, runs a Semaphore playbook limited to it, waits for the host to report, and reports what is left and whether a restart is due; poller survives restarts - Notification toggle for update-run results; tests and docs Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5dc6cea69c
commit
7a5b623444
42 files changed
+7561
-57
No files matched your search
@@ -39,7 +39,7 @@ All gauges. Labels are escaped as Prometheus requires.
|
||||
| Series | Labels | Meaning |
|
||||
|---|---|---|
|
||||
| `homelab_info` | `environment` | Always 1; says which installation this is. |
|
||||
| `homelab_server_up` | `server` | 1 if the agent has reported within the offline threshold (Settings → Notifications), else 0. Servers that never reported are left out. |
|
||||
| `homelab_server_up` | `server` | 1 if the agent has reported within the offline threshold (Settings → Notifications, or the server's own limit if it has one), else 0. Servers that never reported are left out. |
|
||||
| `homelab_server_last_seen_timestamp_seconds` | `server` | When the agent last reported. |
|
||||
| `homelab_server_cpu_load_percent` | `server` | CPU load as the agent reports it. |
|
||||
| `homelab_server_memory_used_percent` | `server` | Memory in use. |
|
||||
@@ -62,6 +62,8 @@ All gauges. Labels are escaped as Prometheus requires.
|
||||
| `homelab_maintenance_active_windows` | | Maintenance windows running now. |
|
||||
| `homelab_secret_expiry_days` | `name` | Days until a secret expires (negative once it has). |
|
||||
| `homelab_inventory_power_watts` | | Typical draw of everything in the inventory. |
|
||||
| `homelab_backup_guests` | `status` | Proxmox guests by how well they are backed up: `ok`, `stale`, `failed`, `none`, `unknown`. From what the last backup check read; a scrape never goes to Proxmox or Backup Server itself, and the series is left out until something has been read. |
|
||||
| `homelab_backup_last_age_seconds` | `guest`, `vmid`, `integration` | How long ago a guest's newest backup was. |
|
||||
| `homelab_scrape_duration_seconds` | | How long building the answer took. |
|
||||
| `homelab_scrape_timestamp_seconds` | | When the answer was built. |
|
||||
|
||||
|
||||
Reference in new issue
Block a user