Prometheus Alert Rules
v1.0.0Visual alert-rule builder + Alertmanager preview — for/severity/runbook annotations.
Alerting Rules YAML
groups:
- name: higherrorrate_group
rules:
- alert: HighErrorRate
expr: rate(http_requests_total{code=~'5..'}[5m]) > 0.05
for: 5m
labels:
severity: warning
annotations:
summary: "High error rate on {{ $labels.job }}"
description: "{{ $labels.job }} — {{ $value | humanize }}"
runbook_url: "https://runbooks.example.com/high-error-rate"
# Validate: promtool check rules alert-rules.yaml
# Test with: promtool test rules test.yaml