Add diskDevice selector

Signed-off-by: Vitaly Zhuravlev <v-zhuravlev@users.noreply.github.com>
This commit is contained in:
Vitaly Zhuravlev 2023-03-28 06:44:02 +08:00
parent 962de6c921
commit c3ec6e8af1

View file

@ -340,7 +340,7 @@
{ {
alert: 'NodeDiskIOSaturation', alert: 'NodeDiskIOSaturation',
expr: ||| expr: |||
rate(node_disk_io_time_weighted_seconds_total{%(nodeExporterSelector)s}[5m]) > 10 rate(node_disk_io_time_weighted_seconds_total{%(nodeExporterSelector)s, %(diskDeviceSelector)s}[5m]) > 10
||| % $._config, ||| % $._config,
'for': '30m', 'for': '30m',
labels: { labels: {
@ -349,7 +349,7 @@
annotations: { annotations: {
summary: 'Disk IO queue is high.', summary: 'Disk IO queue is high.',
description: ||| description: |||
Disk IO queue (aqu-sq) is high on {{ $labels.device }} at {{ $labels.instance }}, has been above 10 for the last 15 minutes, is currently at {{ printf "%.2f" $value }}%. Disk IO queue (aqu-sq) is high on {{ $labels.device }} at {{ $labels.instance }}, has been above 10 for the last 15 minutes, is currently at {{ printf "%.2f" $value }}.
This symptom might indicate disk saturation., This symptom might indicate disk saturation.,
|||, |||,
}, },