Add %(nodeExporterSelector)s to Network and conntrack alerts

Signed-off-by: Vitaly Zhuravlev <v-zhuravlev@users.noreply.github.com>
pull/2644/head
Vitaly Zhuravlev 2 years ago
parent 94fc82e418
commit 962de6c921

@ -159,7 +159,7 @@
{ {
alert: 'NodeNetworkReceiveErrs', alert: 'NodeNetworkReceiveErrs',
expr: ||| expr: |||
rate(node_network_receive_errs_total[2m]) / rate(node_network_receive_packets_total[2m]) > 0.01 rate(node_network_receive_errs_total{%(nodeExporterSelector)s}[2m]) / rate(node_network_receive_packets_total{%(nodeExporterSelector)s}[2m]) > 0.01
||| % $._config, ||| % $._config,
'for': '15m', 'for': '15m',
labels: { labels: {
@ -173,7 +173,7 @@
{ {
alert: 'NodeNetworkTransmitErrs', alert: 'NodeNetworkTransmitErrs',
expr: ||| expr: |||
rate(node_network_transmit_errs_total[2m]) / rate(node_network_transmit_packets_total[2m]) > 0.01 rate(node_network_transmit_errs_total{%(nodeExporterSelector)s}[2m]) / rate(node_network_transmit_packets_total{%(nodeExporterSelector)s}[2m]) > 0.01
||| % $._config, ||| % $._config,
'for': '15m', 'for': '15m',
labels: { labels: {
@ -187,7 +187,7 @@
{ {
alert: 'NodeHighNumberConntrackEntriesUsed', alert: 'NodeHighNumberConntrackEntriesUsed',
expr: ||| expr: |||
(node_nf_conntrack_entries / node_nf_conntrack_entries_limit) > 0.75 (node_nf_conntrack_entries{%(nodeExporterSelector)s} / node_nf_conntrack_entries_limit) > 0.75
||| % $._config, ||| % $._config,
annotations: { annotations: {
summary: 'Number of conntrack are getting close to the limit.', summary: 'Number of conntrack are getting close to the limit.',

Loading…
Cancel
Save