Alert rules of your own, storage forecasts for Proxmox and Synology, and snooze
- Monitoring -> Alert rules: CPU, memory, disk use and disk temperature limits with a time, severity and scope (all, one server, a tag); try before saving; findings are ordinary health conditions - Proxmox storages and Synology volumes are written down on each health pass (hourly, 400 days) and forecast like server disks: badge and history chart on the pages, alert, digest line, /metrics gauge - Snooze an alert until a time; held back like maintenance, messages held, announced once again if still there when it ends - Docs updated Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
788b3e073c
commit
24ae8db380
38 files changed
+7847
-8
No files matched your search
@@ -20,6 +20,7 @@ import { lastAttempt as lastSelfBackup, listSnapshots } from "./selfBackup.js";
|
||||
import { loadAcks, attentionCounts } from "./alertAcks.js";
|
||||
import { listIncidents } from "./incidents.js";
|
||||
import { disksFillingSoon, getForecastSeries } from "./serverMetrics.js";
|
||||
import { storageFillingSoon, storageOverview } from "./storageHistory.js";
|
||||
import { computeSecretStatus } from "./secretStatus.js";
|
||||
import { getSettings } from "./settingsStore.js";
|
||||
import { getUptime } from "./uptimeHistory.js";
|
||||
@@ -139,6 +140,13 @@ export async function buildMetrics(now: Date = new Date()): Promise<string> {
|
||||
} catch (err) {
|
||||
console.error("[metrics] couldn't work out the disk forecasts:", err);
|
||||
}
|
||||
try {
|
||||
for (const f of storageFillingSoon(await storageOverview(now), 3650, 101)) {
|
||||
out.add("homelab_storage_days_to_full", "gauge", "Days until a Proxmox storage or Synology volume is full at its present rate of filling; only for those with a steady climb.", f.daysToFull, { pool: f.label });
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("[metrics] couldn't work out the storage forecasts:", err);
|
||||
}
|
||||
try {
|
||||
const uptime = await getUptime(now, 30);
|
||||
for (const s of serverRows) {
|
||||
|
||||
Reference in new issue
Block a user