Reliability & Operations · Observability

Kubernetes Monitoring with Prometheus and Grafana: What to Alert On

TL;DR

  • Page on symptoms users feel (errors, latency), not on every metric that looks odd. Causes belong on dashboards and in tickets.
  • Use the golden signals or RED for your services, and USE for nodes and disks.
  • Keep a short list of Kubernetes alerts that matter, and notice that kube-prometheus marks most of them as warning, not critical.
  • Let Alertmanager do the hard work: group related alerts, mute the smaller ones when a bigger one fires, and route by severity.
Kubernetes monitoring with Prometheus and Grafana: alert on symptoms, group and inhibit, page only on real impact, review every alert. CloudDrove

A story we hear a lot: a team installs the Prometheus stack on Kubernetes, and all its ready made alert rules go to one Slack channel. A month later people have muted the channel, and the next real outage is reported by a customer.

The fix is fewer, better alerts, sent to the right place. This is the list we start from with growing SaaS teams, checked against the Google SRE book, the Prometheus and Grafana docs and the kube-prometheus runbooks.

Alert on symptoms, not on every metric

The Google SRE book splits monitoring into two questions: what is broken (the symptom), and why (the cause). It calls this one of the most important ideas in good monitoring, and says it is "better to spend much more effort on catching symptoms than causes."

A symptom is something users feel: errors, slow pages, a feature that does not load. A cause is something inside: a pod restarting, a node with high CPU. Many causes never hurt a user, because Kubernetes moves the work somewhere else. Page on them and you wake people up for nothing.

The SRE book gives two rules for pages that we use as a filter. "Every page should be actionable." And "if a page merely merits a robotic response, it shouldn't be a page." The Prometheus docs agree: keep alerting simple, alert on symptoms, and alert on latency and errors as high up the stack as possible.

Golden signals, USE and RED

The four golden signals come from the Google SRE book. If you can only measure four things on a user facing service, measure these.

Latency

How long it takes to serve a request. Users usually feel this first.

Traffic

How much demand is on the system, for example requests per second.

Errors

The rate of requests that fail. This is usually your most important alert.

Saturation

How full the service is. The SRE book warns that many systems slow down before 100% use.

RED and USE split the same idea in two. Tom Wilkie (who later joined Grafana Labs) made RED for services. Brendan Gregg made USE for resources. Wilkie's own advice is to use both: RED shows what users feel, USE shows how healthy the machines are.

REDFor every service
RateErrorsDuration

Requests per second, how many fail, and how long they take. Good for alerts, because it measures what callers of the service feel.

USEFor every resource
UtilizationSaturationErrors

For CPU, memory, disks and network: how busy, how much work is waiting, and how many error events. Best for dashboards and for finding the cause once a symptom alert fires.

So: alerts come from RED or the golden signals. USE lives on the dashboard you open after the page.

The best page: SLO burn rate

A plain "error rate above 1%" alert is noisy: a short spike fires it, a slow leak never does. The Google SRE workbook suggests a better way: set an SLO (service level objective, for example 99.9% of requests succeed over 30 days), and alert on how fast you are using up the error budget (the 0.1% of requests allowed to fail).

The burn rate is that speed. A burn rate of 1 uses the whole budget exactly by the end of the window. The workbook recommends checking each alert over a long window and a short window together, so the alert stops soon after the problem stops. Its recommended setup for a 99.9% SLO:

Page14.4xFast burn
Windows checked
1 hour and 5 minutes
Error budget used
2%
Page6xMedium burn
Windows checked
6 hours and 30 minutes
Error budget used
5%
Ticket1xSlow burn
Windows checked
3 days and 6 hours
Error budget used
10%

Two alerts like this per critical service (errors and latency) can replace a long list of cause alerts. Start with login, your core API and payments.

Kubernetes alerts that matter

Most teams run kube-prometheus or the kube-prometheus-stack Helm chart. Its rules come from the kubernetes-mixin project, and each one has a runbook at runbooks.prometheus-operator.dev. The ones we keep, with the mixin defaults and what we do with each.

KubePersistentVolumeFillingUpPage

A volume is almost full. The runbook lists the impact as service degradation and switching to read only mode.

Critical: under 3% freeWarning: under 15% free and full within 4 days

One of the few cause alerts worth a page. A full disk breaks a database fast, and nothing heals it by itself.

KubePodCrashLoopingChat

A container keeps crashing and Kubernetes keeps restarting it (CrashLoopBackOff). Rollouts and jobs can get stuck.

for 15mwarning

If it hurts users, your SLO alert pages. If not, it can wait for working hours.

KubeNodeNotReadyChat

A node is not Ready, so it cannot take new pods.

for 15mwarning

Losing one node is what Kubernetes is built for. Watch it, but page only through symptoms.

KubeDeploymentReplicasMismatchChat

A Deployment runs fewer replicas than it asks for. Common causes: no room on nodes, scarce GPUs, affinity rules, or an autoscaler that cannot add nodes.

for 15mwarning

Often an early sign of a capacity problem. Fix it the same day.

Kubelet certificate expirationTicket

The kubelet client or server certificate on a node is close to expiry.

Warning: under 7 daysCritical: under 1 day

Easy to fix with a week's notice, painful at midnight. Act on the warning.

WatchdogHeartbeat

An alert that always fires. If it stops arriving, your alerting pipeline is broken.

Always firingdead man's switch

Send it to an outside service that pages you when the heartbeat stops.

Look at the defaults again: in the kubernetes-mixin, crash loops, node not ready and replica mismatch are all warning. Many teams send them to the pager anyway, and that is where alert fatigue starts.

The Prometheus docs add two more: alert when a batch job (backups, billing runs) has not succeeded for at least two full run intervals, and always watch the monitoring itself.

What not to page on

Grafana's alerting best practices say it plainly: page on user facing signals like latency, errors and availability, and keep infrastructure signals like CPU or memory for dashboards. "If no action is possible, it shouldn't be an alert."

High CPU or memory

Busy is not broken. If it hurts users, latency shows it. If not, it is a capacity ticket.

One pod restart

Restarts are normal. A crash loop that lasts is a warning, not a page.

Short spikes

Use a pending period (the for field) so a 30 second blip does not page anyone.

Info alerts

kube-prometheus routes info level alerts to a null receiver by default. Keep it that way.

Same fix every time

If the response is always one command, automate it. A robot response is not a page.

No runbook, no owner

If nobody knows what to do when it fires, it is not ready to page anyone yet.

Routing with Alertmanager

Prometheus decides when an alert fires. Alertmanager decides who hears about it, and how often. Three features do most of the work. Grouping puts alerts of a similar kind into one notification, so a network problem across many pods sends one message, not hundreds. Inhibition mutes some alerts while another one is already firing: if a whole cluster is unreachable, you do not need every alert inside it. Silences mute alerts for a set time, for example during planned maintenance. Grafana Alerting does the same with notification policies.

The default kube-prometheus config is a sensible start. It groups by namespace, waits 30 seconds before the first message of a group, and repeats an unchanged group every 12 hours. Critical alerts go to their own receiver. A critical alert mutes the warning and info versions of the same alert in the same namespace.

Keep alert fatigue away

The SRE book notes that people can only respond with real urgency a few times a day before they get tired. Grafana's advice: review alerts often and remove the ones that do not lead to action.

  • Every page is a symptom users feel, or will feel very soon.
  • Critical services have SLOs and burn rate alerts.
  • Every alert has a severity, an owner and a runbook link.
  • Warnings go to chat or tickets, never to the pager.
  • Alertmanager groups related alerts and inhibits duplicates.
  • Watchdog reaches an outside service that pages when it stops.
  • Volume and certificate warnings are fixed before they turn critical.
  • Once a month, alerts that fired with no action are deleted or tuned.

If you want to go further, our post on AIOps adoption looks at what AI really changes in this flow, and should you outsource on-call covers who answers the page at 3am.

Quick answers

What should wake someone up at night in Kubernetes?

Only problems users feel now or will feel very soon, and that a human must fix. In practice: a fast error budget burn on a user facing service, a volume that is about to be full, and your monitoring itself going silent. Most other Kubernetes alerts can wait for working hours.

Are the default kube-prometheus alerts enough?

They are a good base for causes, but not for symptoms. The kubernetes-mixin rules tell you when pods crash, nodes go not ready or volumes fill up. They do not know what your users see. Add latency and error rate alerts on your own services, ideally as SLO burn rate alerts.

What is the difference between the golden signals, USE and RED?

The four golden signals from the Google SRE book are latency, traffic, errors and saturation. RED (rate, errors, duration) is a shorter version for services. USE (utilization, saturation, errors) is for resources like CPU, memory and disks. Use RED or the golden signals for alerts, and USE mostly for dashboards and debugging.

How do we reduce alert fatigue?

Page only on symptoms. Send warnings to a chat channel or ticket queue. Group related alerts in Alertmanager and inhibit the noisy ones when a bigger alert is already firing. Link a runbook in every alert, and every month delete or tune alerts that fired without anyone taking action.

What to do next

01

Count last month's pages. For each one, ask: did a user feel it, and did someone have to act? Move every "no" to chat or delete it.

02

Get alerts tuned to what users feel. Our Prometheus and Grafana consulting sets up Prometheus, Alertmanager, Grafana and Loki from code, with alerts built around your users.

03

See the whole picture. Our Observability work builds dashboards and alerts that reach a person only when they can act on them.

04

Need someone to answer the page? Look at 24x7 Managed Support, or talk to an engineer.

A good alert is rare, clear, and always worth getting up for.

Sources

  1. Monitoring Distributed Systems, Google SRE bookThe four golden signals, symptoms versus causes, "every page should be actionable", robotic responses, limits on urgent pages per day.
  2. Alerting on SLOs, Google SRE workbookBurn rate, multiwindow multi-burn-rate alerts, and the 14.4x, 6x and 1x settings for a 99.9% SLO.
  3. The USE Method, Brendan GreggUtilization, saturation and errors for every resource.
  4. The RED Method: how to instrument your services, Grafana LabsRate, errors and duration for services, by Tom Wilkie; RED and USE as two views of one system.
  5. Alerting, Prometheus docsKeep alerting simple, alert on symptoms, batch jobs, capacity, monitoring the monitoring.
  6. Alertmanager, Prometheus docsGrouping, inhibition and silences.
  7. Alertmanager configuration, Prometheus docsRoute timing fields and inhibit rule fields.
  8. kube-prometheus default Alertmanager configGroup by namespace, 30s group wait, 12h repeat, critical receiver, default inhibit rules.
  9. kubernetes-mixin alert rulesDefault for durations, severities and thresholds for the alerts named in this post (apps, storage and kubelet alert files).
  10. KubePodCrashLooping runbookMeaning and impact of crash loops.
  11. KubeNodeNotReady runbookMeaning and impact of a node that is not Ready.
  12. KubePersistentVolumeFillingUp runbookImpact: service degradation, switching to read only mode.
  13. KubeDeploymentReplicasMismatch runbookMeaning and common causes of missing replicas.
  14. Watchdog runbookAlways firing alert used as a dead man's switch.
  15. InfoInhibitor runbookInfo alerts routed to a null receiver.
  16. Alerting best practices, Grafana docsPage on user facing signals, CPU and memory on dashboards, runbook links, regular reviews.
  17. Notification policies, Grafana docsRouting alerts by labels in Grafana Alerting.
All blogs

Related Reading

Go deeper.

Cloud Infrastructure Assessment

See exactly where your cloud stands.

A senior engineer reviews your architecture, cost, security, and reliability, then sends back a prioritized findings report, the fixes that matter most, in order.

  • Architecture & scale
  • Cost & efficiency
  • Security & reliability
Book an Assessment

Complimentary · no obligation · no sales pressure

Work With Us

Want this kind of engineering on your side?

The same people who write these build your platform. Let's talk about what you're working on.

Talk to an Expert