itamae/cookbooks/prometheus/files/etc/prometheus.d/alerts/services.yml

22 lines
646 B
YAML
Raw Normal View History

groups:
- name: services
rules:
- alert: Digdag
expr: node_systemd_unit_state{name="digdag.service", state="active"} != 1
for: 5m
labels:
severity: error
annotations:
summary: "Digdag is not running: {{ $labels.instance }}."
description: "Digdag is not running: {{ $labels.instance }}."
2023-02-05 10:02:38 +00:00
- alert: node_exporter
expr: node_systemd_unit_state{name="node_exporter.service", state="active"} != 1
2023-02-05 05:25:05 +00:00
for: 5m
labels:
severity: error
annotations:
2023-02-05 10:02:38 +00:00
summary: "node_exporter is not running: {{ $labels.instance }}."
description: "node_exporter is not running: {{ $labels.instance }}."
2023-02-05 05:25:05 +00:00