Add an Up for panel to the generated Grafana dashboard
One tile per server, time() - homelab_server_boot_time_seconds, in the Servers row and following the Server picker. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
48aea747bc
commit
8f5068c6e0
3 files changed
+12
-2
No files matched your search
@@ -200,6 +200,7 @@ export function buildGrafanaDashboard(): Record<string, unknown> {
|
||||
24,
|
||||
9,
|
||||
);
|
||||
l.add(stat("Up for", `time() - homelab_server_boot_time_seconds${srv}`, { unit: "s", legend: "{{server}}", description: "How long each server has run since it last started, from the uptime its agent reports. A tile that has just reset is a server that has just rebooted." }), 24, 4);
|
||||
l.add(timeseries("CPU load", [{ expr: `homelab_server_cpu_load_percent${srv}`, legend: "{{server}}" }], { unit: "percent", min: 0 }), 12, 8);
|
||||
l.add(timeseries("Memory in use", [{ expr: `homelab_server_memory_used_percent${srv}`, legend: "{{server}}" }], { unit: "percent", min: 0, max: 100 }), 12, 8);
|
||||
l.add(bargauge("Uptime, last 30 days", `homelab_server_uptime_ratio_30d${srv}`, "{{server}}", { unit: "percentunit", min: 0, max: 1, thresholds: { steps: [[RED, null], [YELLOW, 0.95], [GREEN, 0.99]] } }), 12, 8);
|
||||
|
||||
Reference in new issue
Block a user