From 6d1976650051a5dea38412a9f06c6c637d3b900b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 6 Jan 2022 21:07:26 +0100 Subject: ... --- hosts/vidhar/prometheus/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 7880154a..af8ad5a0 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -196,13 +196,13 @@ in { expr = "timestamp(systemd_unit_start_time_seconds) - (systemd_unit_start_time_seconds > 0)"; } { record = "systemd_unit_runtime_seconds:resets_per_hour"; - expr = "resets(systemd_unit_start_time_seconds:uptime[1h])"; + expr = "resets(systemd_unit_runtime_seconds[1h])"; } { record = "systemd_unit_runtime_seconds:resets_per_day"; - expr = "resets(systemd_unit_start_time_seconds:uptime[1d])"; + expr = "resets(systemd_unit_runtime_seconds[1d])"; } { record = "systemd_unit_runtime_seconds:resets_per_week"; - expr = "resets(systemd_unit_start_time_seconds:uptime[1w])"; + expr = "resets(systemd_unit_runtime_seconds[1w])"; } ]; } -- cgit v1.2.3