Add alert rules for `prometheus` and `vector-prometheus`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-12 19:22:29 +09:00
parent c6fc83191e
commit 72a89595e7
1 changed files with 18 additions and 0 deletions

View File

@ -72,3 +72,21 @@ groups:
annotations:
summary: "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 }}."