Alerts


/etc/prometheus/alert.rules > example
high_load (1 active)
alert: high_load
expr: node_load1 > 0.5
for: 2m
labels:
  severity: page
annotations:
  description: '{{ $labels.instance }} of job {{ $labels.job }} is under high load.'
  summary: Instance {{ $labels.instance }} under high load
Labels State Active Since Value
alertname="high_load" instance="node-exporter:9100" job="node-exporter" severity="page" pending 2025-12-28 18:42:01.656129563 +0000 UTC 0.87
service_down (0 active)
alert: service_down
expr: up == 0
for: 2m
labels:
  severity: page
annotations:
  description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes.'
  summary: Instance {{ $labels.instance }} down