diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/vidhar/network/gpon.nix | 2 | ||||
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/hosts/vidhar/network/gpon.nix b/hosts/vidhar/network/gpon.nix index 759adf40..1628159c 100644 --- a/hosts/vidhar/network/gpon.nix +++ b/hosts/vidhar/network/gpon.nix | |||
@@ -49,7 +49,7 @@ in { | |||
49 | environment.etc."ppp/ip-pre-up".source | 49 | environment.etc."ppp/ip-pre-up".source |
50 | environment.etc."ppp/ip-up".source | 50 | environment.etc."ppp/ip-up".source |
51 | environment.etc."ppp/ip-down".source | 51 | environment.etc."ppp/ip-down".source |
52 | sops.secrets."pap-secrets".sopsFile | 52 | # sops.secrets."pap-secrets".sopsFile |
53 | ]; | 53 | ]; |
54 | }; | 54 | }; |
55 | sops.secrets."pap-secrets" = { | 55 | sops.secrets."pap-secrets" = { |
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 330026d7..3e938933 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix | |||
@@ -263,6 +263,9 @@ in { | |||
263 | { record = "systemd_unit_runtime_seconds:resets_per_week"; | 263 | { record = "systemd_unit_runtime_seconds:resets_per_week"; |
264 | expr = "resets(systemd_unit_runtime_seconds[1w])"; | 264 | expr = "resets(systemd_unit_runtime_seconds[1w])"; |
265 | } | 265 | } |
266 | { record = "systemd_unit_runtime_seconds:avg_resets_per_day"; | ||
267 | expr = "avg_over_time(systemd_unit_runtime_seconds:resets_per_day[1w])"; | ||
268 | } | ||
266 | ]; | 269 | ]; |
267 | } | 270 | } |
268 | { name = "apcupsd-transfers"; | 271 | { name = "apcupsd-transfers"; |
@@ -279,6 +282,9 @@ in { | |||
279 | { record = "apcupsd_last_transfer_on_battery_counter_seconds:resets_per_week"; | 282 | { record = "apcupsd_last_transfer_on_battery_counter_seconds:resets_per_week"; |
280 | expr = "resets(apcupsd_last_transfer_on_battery_counter_seconds[1w])"; | 283 | expr = "resets(apcupsd_last_transfer_on_battery_counter_seconds[1w])"; |
281 | } | 284 | } |
285 | { record = "apcupsd_last_transfer_on_battery_counter_seconds:avg_resets_per_day"; | ||
286 | expr = "avg_over_time(apcupsd_last_transfer_on_battery_counter_seconds:resets_per_day[1w])"; | ||
287 | } | ||
282 | ]; | 288 | ]; |
283 | } | 289 | } |
284 | ]; | 290 | ]; |