Add `Prometheus` mointoring rules for `snmp_exporter` and `vector-snmp_exporter`

This commit is contained in:
Kazuhiro MUSASHI 2023-02-07 22:29:00 +09:00
parent 2a78c5f1e6
commit e859be7384
1 changed files with 18 additions and 0 deletions

View File

@ -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 }}."