Pcornel
Browse topics
Options
Recent
Favorites
Observability · Technical reference

Alerting

Direct answer

Alerting turns telemetry into notifications when conditions need human action, through rules, routing, grouping and on-call channels.

When to use this

Use it when designing alerts or when alerts are noisy or missing.

First 30 seconds

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.

Operational verification

rule evaluates → pending → firing → Alertmanager routes → notification → runbook

Evidence · next step

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
Common mistakes
What not to infer

Observability owns alert-rule and notification mechanics. Service Domains own remediation; Evidence governs what the triggering observation establishes.

Platform / version applicability
OpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformOpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines · Observability owns alert-rule and notification mechanics. Service Domains own remediation; Evidence governs what the triggering observation establishes.
Scope / prerequisiteUse it when designing alerts or when alerts are noisy or missing.
What next?3 suggested next steps
Child topics (this level)3
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

test · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

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.

Key checks
  • curl -s localhost:9090/api/v1/alerts — first check for this topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool 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.

PrinciplePractice
Alert on symptoms users feelError rate, latency, availability, SLO burn rate
Use causes for diagnosis, not pagingDisk 80% → ticket; service down → page
Every page is actionableLink to runbook and dashboard
Severity routingPage only for urgent issues; tickets/chat for the rest
Deduplicate and groupOne notification per incident
Review regularlyRemove 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
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Prometheus Alertmanager Prometheus 2.45 or laterAlert rule with a for: duration and severity label.

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-5xx

Expected output

Prometheus Alertmanager Prometheus 2.45 or laterpromtool check rules /etc/prometheus/rules/checkout.yml

Expected state: The rule file parses and the rule count matches.

Checking /etc/prometheus/rules/checkout.yml
  SUCCESS: 1 rules found
for: 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.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-29 · otherOpenTelemetry / Prometheus / Grafana ecosystem Prometheus current documentation

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
alertingalerting observabilityalert fatiguePrometheus alert design
Embedded reference data

Quick lookup tables

Alerting verification boundary matrix

A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Alerting.

BoundaryInspectHealthy interpretationDo not infer
IntentThresholdsIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeRate-of-change and absence alerts / DeduplicationOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateGroupingIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeInhibition/silencingThe original bounded check succeeds in the same time windowProduction correctness outside this scope
Depth when you need it

Deep reference

Design & tradeoffs

Scope

Observability owns alert-rule and notification mechanics. Service Domains own remediation; Evidence governs what the triggering observation establishes.

Confirmation

Confirm action

Continue?