Add `Prometheus` mointoring rules for `snmp_exporter` and `vector-snmp_exporter`
This commit is contained in:
parent
2a78c5f1e6
commit
e859be7384
|
@ -27,3 +27,21 @@ groups:
|
||||||
annotations:
|
annotations:
|
||||||
summary: "vector-node_exporter is not running: {{ $labels.instance }}."
|
summary: "vector-node_exporter is not running: {{ $labels.instance }}."
|
||||||
description: "vector-node_exporter is not running: {{ $labels.instance }}."
|
description: "vector-node_exporter is not running: {{ $labels.instance }}."
|
||||||
|
|
||||||
|
- alert: snmp_exporter
|
||||||
|
expr: node_systemd_unit_state{name="snmp_exporter.service", state="active"} != 1
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: error
|
||||||
|
annotations:
|
||||||
|
summary: "snmp_exporter is not running: {{ $labels.instance }}."
|
||||||
|
description: "snmp_exporter is not running: {{ $labels.instance }}."
|
||||||
|
|
||||||
|
- alert: vector-snmp_exporter
|
||||||
|
expr: node_systemd_unit_state{name="vector-snmp_exporter.service", state="active"} != 1
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: error
|
||||||
|
annotations:
|
||||||
|
summary: "vector-snmp_exporter is not running: {{ $labels.instance }}."
|
||||||
|
description: "vector-snmp_exporter is not running: {{ $labels.instance }}."
|
||||||
|
|
Loading…
Reference in New Issue