diff options
| -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"; |
