diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-05-22 11:42:08 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-05-22 11:42:08 +0200 |
commit | 0c42052020bf247d8df25bde941c289870bf337d (patch) | |
tree | 7e6923a9512b161ff41b6dcbcc8ea127ffa4cde3 /hosts/vidhar | |
parent | c9eb7fbeb61b14f78cc17f68c4f333ba567ee7cd (diff) | |
download | nixos-0c42052020bf247d8df25bde941c289870bf337d.tar nixos-0c42052020bf247d8df25bde941c289870bf337d.tar.gz nixos-0c42052020bf247d8df25bde941c289870bf337d.tar.bz2 nixos-0c42052020bf247d8df25bde941c289870bf337d.tar.xz nixos-0c42052020bf247d8df25bde941c289870bf337d.zip |
...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
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 { | |||
246 | rules = [ | 246 | rules = [ |
247 | (generators.toYAML {} { | 247 | (generators.toYAML {} { |
248 | groups = [ | 248 | groups = [ |
249 | { name = "lvm-with-info"; | ||
250 | rules = [ | ||
251 | { record = "lvm_lv_sync_percent_info"; | ||
252 | expr = "lvm_lv_sync_percent * on (lv_uuid) group_left(instance,lv_full_name) lvm_lv_info"; | ||
253 | } | ||
254 | ]; | ||
255 | } | ||
249 | { name = "systemd-starts"; | 256 | { name = "systemd-starts"; |
250 | rules = [ | 257 | rules = [ |
251 | { record = "systemd_unit_runtime_seconds"; | 258 | { record = "systemd_unit_runtime_seconds"; |