From bc90ef66903e78713db1fd3a700785572b794cde Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 20 Jul 2024 10:41:20 +0200 Subject: ... --- hosts/vidhar/network/gpon.nix | 2 +- hosts/vidhar/prometheus/default.nix | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 { environment.etc."ppp/ip-pre-up".source environment.etc."ppp/ip-up".source environment.etc."ppp/ip-down".source - sops.secrets."pap-secrets".sopsFile + # sops.secrets."pap-secrets".sopsFile ]; }; 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 { { record = "systemd_unit_runtime_seconds:resets_per_week"; expr = "resets(systemd_unit_runtime_seconds[1w])"; } + { record = "systemd_unit_runtime_seconds:avg_resets_per_day"; + expr = "avg_over_time(systemd_unit_runtime_seconds:resets_per_day[1w])"; + } ]; } { name = "apcupsd-transfers"; @@ -279,6 +282,9 @@ in { { record = "apcupsd_last_transfer_on_battery_counter_seconds:resets_per_week"; expr = "resets(apcupsd_last_transfer_on_battery_counter_seconds[1w])"; } + { record = "apcupsd_last_transfer_on_battery_counter_seconds:avg_resets_per_day"; + expr = "avg_over_time(apcupsd_last_transfer_on_battery_counter_seconds:resets_per_day[1w])"; + } ]; } ]; -- cgit v1.2.3