Use it when designing alerts or when alerts are noisy or missing.
Alerting
Alerting turns telemetry into notifications when conditions need human action, through rules, routing, grouping and on-call channels.
1. Firing alerts: curl -s localhost:9090/api/v1/alerts.
2. Rule has for, labels (severity, team) and runbook_url annotation.
3. Routing delivers to the right receiver.
4. Test with amtool alert add.
5. Review noisy alerts weekly.
rule evaluates → pending → firing → Alertmanager routes → notification → runbook
Failures include noisy static thresholds, alerts on missing telemetry without distinguishing collector outage, label churn creating duplicate alerts, routing loops, broad silences and alerts that name a symptom but give no owning service or verification link. Preserve the first divergent observation and repeat the same bounded verification after remediation.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Observability owns alert-rule and notification mechanics. Service Domains own remediation; Evidence governs what the triggering observation establishes.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification workflow Verify boundary
Validate the source query first, then condition/window/for-duration, labels used for grouping/routing and notification delivery. Test both firing and resolved paths with a bounded fixture, and verify that silence/inhibition rules do not mask unrelated incidents.
Step 2 Failure signatures and limits Narrow the fault
Failures include noisy static thresholds, alerts on missing telemetry without distinguishing collector outage, label churn creating duplicate alerts, routing loops, broad silences and alerts that name a symptom but give no owning service or verification link.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Alertmanager groups related alerts, routes them by labels to receivers and suppresses duplicates with inhibition and silences.
Subtopic Alert Design and FatigueGood alerts are actionable, tied to user impact and link to a runbook; too many noisy alerts cause people to ignore them.
Subtopic Silences and Maintenance WindowsSilences mute matching alerts for a set time; mute timings or maintenance windows suppress notifications on a schedule.
Alert on symptoms that need action now; send causes to dashboards or tickets. Every alert needs an owner and a runbook. Use for: to avoid flapping.
curl -s localhost:9090/api/v1/alerts— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
ReferenceWhat it is1 section · depth on demand
Operating model
Alerting converts telemetry queries into notifications when a defined condition persists. Good alerts identify an actionable service impact or imminent failure, include enough context for triage and avoid notifying repeatedly for the same underlying incident through grouping/deduplication/inhibition.
ReferenceHow it works1 section · depth on demand
In depth
Alerting notifies people when something needs attention. Good alerting is symptom-based, actionable and rare enough that every alert is taken seriously; bad alerting produces noise that trains people to ignore it.
| Principle | Practice |
|---|---|
| Alert on symptoms users feel | Error rate, latency, availability, SLO burn rate |
| Use causes for diagnosis, not paging | Disk 80% → ticket; service down → page |
| Every page is actionable | Link to runbook and dashboard |
| Severity routing | Page only for urgent issues; tickets/chat for the rest |
| Deduplicate and group | One notification per incident |
| Review regularly | Remove or tune noisy alerts |
# Prometheus alert rule
- alert: HighErrorRate
expr: sum(rate(http_requests_total{code=~"5.."}[5m])) / sum(rate(http_requests_total[5m])) > 0.05
for: 10m
labels: { severity: page }
annotations: { summary: "Error rate above 5%", runbook_url: "https://wiki.example.com/runbooks/api-errors" }
ReferenceImportant terms & boundaries1 section · depth on demand
Scope map
- Thresholds
- Rate-of-change and absence alerts
- Deduplication
- Grouping
- Inhibition/silencing
- Routing
- Alert fatigue
- Actionable alert design
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
Assumptions: Recording rule job:http_errors:ratio5m exists.
groups:
- name: checkout
rules:
- alert: CheckoutHighErrorRate
expr: job:http_errors:ratio5m{job="checkout"} > 0.05
for: 10m
labels: {severity: page}
annotations:
summary: "Checkout 5xx ratio above 5% for 10 minutes"
runbook_url: https://wiki.example.com/runbooks/checkout-5xxExpected output
promtool check rules /etc/prometheus/rules/checkout.ymlExpected state: The rule file parses and the rule count matches.
Checking /etc/prometheus/rules/checkout.yml
SUCCESS: 1 rules foundfor: 10m keeps short spikes from paging; the alert is Pending until the condition has held for the whole period. Illustrative authored output: field layout matches the tool, values will differ in your environment.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.
Basis: https://prometheus.io/docs/alerting/latest/overview/ · confidence 92%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Alerting verification boundary matrix
A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Alerting.
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Thresholds | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | Rate-of-change and absence alerts / Deduplication | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | Grouping | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Inhibition/silencing | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Deep reference
Design & tradeoffs
Scope
Observability owns alert-rule and notification mechanics. Service Domains own remediation; Evidence governs what the triggering observation establishes.