From 36de84e91577461ea10871cbb763f27eb9f7aaf4 Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@leastauthority.com> Date: Mon, 7 Oct 2024 07:51:53 +0000 Subject: [PATCH] Fix space usage dashboard: Use the same colors as for other machines bind-mounting the nix store r/o made that FS turn up twice in the list, resulting in the graph showing the wrong colors for the machines. --- .../server/grafana-dashboards/resources-overview.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json b/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json index 7e650f6e..eee6ffd1 100644 --- a/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json +++ b/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json @@ -1149,7 +1149,7 @@ "pluginVersion": "8.4.5", "targets": [ { - "expr": "1 - (node_filesystem_avail_bytes / node_filesystem_size_bytes) > 0.1", + "expr": "1 - (node_filesystem_avail_bytes{mountpoint!='/nix/store'} / node_filesystem_size_bytes{mountpoint!='/nix/store'}) > 0.1", "format": "time_series", "hide": false, "instant": false, -- GitLab