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