summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix
index fd7bbd88..c222aa74 100644
--- a/hosts/vidhar/default.nix
+++ b/hosts/vidhar/default.nix
@@ -209,7 +209,7 @@
209 groups = [ 209 groups = [
210 { name = "power-failures"; 210 { name = "power-failures";
211 rules = [ 211 rules = [
212 { record = "apcupsd_power_failures:rate_1d"; 212 { record = "apcupsd_power_failures:per_day";
213 expr = "sum by (nodename) (rate({job=\"systemd-journal\"} | json | MESSAGE = \"Power failure.\"[1d])) * 86400"; 213 expr = "sum by (nodename) (rate({job=\"systemd-journal\"} | json | MESSAGE = \"Power failure.\"[1d])) * 86400";
214 } 214 }
215 { record = "apcupsd_power_failures:per_week"; 215 { record = "apcupsd_power_failures:per_week";