health: add go.d/lvm alerts (#17807)
Ilya Mashchenko committed
Jun 4, 2024 at 10:44 UTC
43647c4b775d6f420d270de90f741718c146d8e5
2 files changed
+40
-1
src/go/collectors/go.d.plugin/modules/lvm/metadata.yaml
+9
-1
@@ -75,7 +75,15 @@ modules:
75
troubleshooting:
76
problems:
77
list: []
78
- alerts: []
78
+ alerts:
79
+ - name: lvm_lv_data_space_utilization
80
+ metric: lvm.lv_data_space_utilization
81
+ info: LVM logical volume high data space usage (LV ${label:lv_name} VG ${label:vg_name} Type ${label:volume_type})
82
+ link: https://github.com/netdata/netdata/blob/master/src/health/health.d/lvm.conf
83
+ - name: lvm_lv_metadata_space_utilization
84
+ metric: lvm.lv_metadata_space_utilization
85
+ info: LVM logical volume high metadata space usage (LV ${label:lv_name} VG ${label:vg_name} Type ${label:volume_type})
86
+ link: https://github.com/netdata/netdata/blob/master/src/health/health.d/lvm.conf
87
metrics:
88
folding:
89
title: Metrics
src/health/health.d/lvm.conf
new
+31
@@ -0,0 +1,31 @@
1
+# you can disable an alarm notification by setting the 'to' line to: silent
2
+
3
+ template: lvm_lv_data_space_utilization
4
+ on: lvm.lv_data_space_utilization
5
+ class: Utilization
6
+ type: System
7
+ component: LVM
8
+ calc: $utilization
9
+ units: %
10
+ every: 1m
11
+ warn: $this > (($status >= $WARNING ) ? (85) : (90))
12
+ crit: ($this > (($status == $CRITICAL) ? (90) : (98)))
13
+ delay: down 5m multiplier 1.5 max 1h
14
+ summary: LVM LV ${label:lv_name} on VG ${label:vg_name} high data space usage
15
+ info: LVM logical volume high data space usage (LV ${label:lv_name} VG ${label:vg_name} Type ${label:volume_type})
16
+ to: sysadmin
17
+
18
+ template: lvm_lv_metadata_space_utilization
19
+ on: lvm.lv_metadata_space_utilization
20
+ class: Utilization
21
+ type: System
22
+ component: LVM
23
+ calc: $utilization
24
+ units: %
25
+ every: 1m
26
+ warn: $this > (($status >= $WARNING ) ? (85) : (90))
27
+ crit: ($this > (($status == $CRITICAL) ? (90) : (98)))
28
+ delay: down 5m multiplier 1.5 max 1h
29
+ summary: LVM LV ${label:lv_name} on VG ${label:vg_name} high metadata space usage
30
+ info: LVM logical volume high metadata space usage (LV ${label:lv_name} VG ${label:vg_name} Type ${label:volume_type})
31
+ to: sysadmin