diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-07 13:26:53 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-07 13:26:53 +0100 |
commit | 7fcf242f1b4fa903d47374dbc04ead78924e7582 (patch) | |
tree | 1f55516ab2ca090313f810a65f8b986c467454b5 /hosts | |
parent | efc389628501740b1797e06aa7178a3cd714984c (diff) | |
download | nixos-7fcf242f1b4fa903d47374dbc04ead78924e7582.tar nixos-7fcf242f1b4fa903d47374dbc04ead78924e7582.tar.gz nixos-7fcf242f1b4fa903d47374dbc04ead78924e7582.tar.bz2 nixos-7fcf242f1b4fa903d47374dbc04ead78924e7582.tar.xz nixos-7fcf242f1b4fa903d47374dbc04ead78924e7582.zip |
vidhar: ...
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/vidhar/default.nix | 2 |
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"; |