From bc90ef66903e78713db1fd3a700785572b794cde Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 20 Jul 2024 10:41:20 +0200 Subject: ... --- hosts/vidhar/prometheus/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hosts/vidhar/prometheus/default.nix') 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