From 7fcf242f1b4fa903d47374dbc04ead78924e7582 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 7 Jan 2022 13:26:53 +0100 Subject: vidhar: ... --- hosts/vidhar/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ groups = [ { name = "power-failures"; rules = [ - { record = "apcupsd_power_failures:rate_1d"; + { record = "apcupsd_power_failures:per_day"; expr = "sum by (nodename) (rate({job=\"systemd-journal\"} | json | MESSAGE = \"Power failure.\"[1d])) * 86400"; } { record = "apcupsd_power_failures:per_week"; -- cgit v1.2.3