From 0c42052020bf247d8df25bde941c289870bf337d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 22 May 2023 11:42:08 +0200 Subject: ... --- hosts/vidhar/prometheus/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hosts/vidhar/prometheus') diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 869b9b18..133ddbbc 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -246,6 +246,13 @@ in { rules = [ (generators.toYAML {} { groups = [ + { name = "lvm-with-info"; + rules = [ + { record = "lvm_lv_sync_percent_info"; + expr = "lvm_lv_sync_percent * on (lv_uuid) group_left(instance,lv_full_name) lvm_lv_info"; + } + ]; + } { name = "systemd-starts"; rules = [ { record = "systemd_unit_runtime_seconds"; -- cgit v1.2.3