summaryrefslogtreecommitdiff
path: root/hosts/vidhar/prometheus
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-07-20 10:41:20 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-07-20 10:41:20 +0200
commitbc90ef66903e78713db1fd3a700785572b794cde (patch)
treea56ef5e3ecd1aec5e0924ffc4b62bb663c43898d /hosts/vidhar/prometheus
parent2b8683f43eb38e0d8c08a3ae6b58022ed0e7acac (diff)
downloadnixos-bc90ef66903e78713db1fd3a700785572b794cde.tar
nixos-bc90ef66903e78713db1fd3a700785572b794cde.tar.gz
nixos-bc90ef66903e78713db1fd3a700785572b794cde.tar.bz2
nixos-bc90ef66903e78713db1fd3a700785572b794cde.tar.xz
nixos-bc90ef66903e78713db1fd3a700785572b794cde.zip
...
Diffstat (limited to 'hosts/vidhar/prometheus')
-rw-r--r--hosts/vidhar/prometheus/default.nix6
1 files changed, 6 insertions, 0 deletions
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 ];