Skip to main content

When a node goes down, don't let a hundred Pod alerts page everyone

One Kubernetes node fails and a dozen application teams get paged. Grouping can't fix one event that causes a batch of others; inhibition can. This post covers the three conditions inhibition needs, where to configure it, and which alerts you should never inhibit.

Flashduty Product

When a node goes down, don't let a hundred Pod alerts page everyone

Say it's 03:12 and production node node-07 stops responding after a kernel fault. It runs more than 60 Pods for 12 services, and they don't reschedule to other nodes in time. Within minutes, over a hundred alerts arrive: readiness probe failures, container restarts, Pods in Unknown state. The platform on-call engineer gets the node alert, and the on-call engineers of 12 application teams get phone calls too. They all open their laptops, see the same node, and wait for the platform team to fix it.

Those hundred alerts describe the consequences of one failure, but they reached 13 people. Grouping handles one event reported many times. Inhibition handles one event that causes a batch of other events. Grouping relies on alerts being similar; inhibition needs you to tell the platform how alerts are causally related. Inhibition works reliably only when three conditions hold: cause and effect share labels, the cause arrives first, and you only inhibit alerts that recover on their own once the root cause is fixed.

Why grouping can't merge these alerts

Most teams reach for grouping first during an alert storm.

  • Group by service: 12 services still produce 12 incidents, and the same 13 people get paged.
  • Group by node: this incident collapses into one, but on a normal day a node runs Pods for unrelated services. Unrelated alerts end up in the same incident, and assignment breaks.
  • The more common case: node alerts belong to the platform team and Pod alerts belong to each application team. They live in different channels, so no grouping rule can merge them.

Grouping assumes alerts resemble each other. Here they're cause and effect: the node failure is the cause, the Pod failures are the effect.

What an inhibit rule says

An inhibit rule answers three questions:

  • What is the cause: the active alert that acts as the source, such as node NotReady.
  • What is the effect: the new alerts that can be inhibited, such as Pod not ready or container restarting repeatedly.
  • How do you know it's the same event: the labels both alerts must share, such as the same cluster and the same node.

While the cause is active, any new effect alert with matching labels is inhibited. It doesn't create an incident or send a notification. Application teams sleep; the platform team fixes the node.

Condition 1: cause and effect share labels

Inhibition uses labels to recognize the same event. When a rule doesn't fire, the usual reason is that the labels don't line up: the node alert has a node label, and the Pod alert only has namespace and pod.

In Prometheus, join kube_pod_info in the alert rule to carry node onto the Pod alert:

max by (namespace, pod) (kube_pod_status_ready{condition="false"} == 1)
  * on (namespace, pod) group_left (node)
    max by (namespace, pod, node) (kube_pod_info)

With multiple clusters, also carry a cluster label. Otherwise nodes with the same name in different clusters inhibit each other.

Once the labels are in place, grouping, routing, and assignment get more accurate too. Alert storm noise reduction in practice lists the stable labels every team needs.

Condition 2: the cause arrives first

Inhibition only suppresses effects that arrive after the cause. If Pod alerts arrive first, they've already created incidents and placed calls. A node alert that arrives later can't take them back.

Tune the pending duration (the for clause in Prometheus rules): short for the root-cause alert, longer for derived alerts. For example, fire the node alert after 1 minute and Pod alerts after 3 minutes. Kubernetes takes a while to mark an unresponsive node NotReady, so leave room for that delay.

Arriving first also has a time limit. Flashduty only uses unresolved alerts that started within the last 10 minutes as inhibition sources. The window counts from the root-cause alert's start time, and new events on that alert don't extend it. So inhibition covers the burst in the first 10 minutes after the root cause appears. If the node stays down longer, Pod alerts that show up after that aren't suppressed. When inhibition "stops working" during a long outage, this is why.

Let grouping handle those. Group by service or node in the application teams' channels, and Pod alerts that arrive after the 10-minute window merge into the existing incident instead of paging one by one.

Condition 3: only inhibit alerts that recover once the root cause is fixed

Not every alert related to the node should be inhibited.

Take "order service 5xx error rate above 5%". If all order service replicas happened to run on node-07, this alert means users are already affected, and the application team needs to know. They may turn on degraded mode, notify customer support, or reschedule the service to other nodes while the platform team works on the node.

The test: after the platform team fixes the node, will this alert recover by itself? If yes, inhibit it. If not, or if it reflects user impact, don't. Pod not ready and container restarts fall in the first group. Service error rate and a drop in core transaction volume fall in the second, so keep them out of the effect conditions.

When a node goes down, Pod alerts are inhibited and service-impact alerts still notify

Use inhibition sparingly

Inhibition creates dependencies between alerts. Someone has to maintain them, and with enough rules nobody can explain why a given alert didn't fire. As The eight stages of on-call recommends, use inhibition only for a few cases with clear boundaries and stable dependencies. If grouping solves the problem, don't use inhibition.

Node → Pod fits: Kubernetes scheduling defines the dependency, the node label comes reliably from metrics, and the derived alerts are too many for grouping. Similar cases include a datacenter network outage and every service in it, or a primary database failure and the connection errors in apps that depend on it. Configure these first, and add others only when grouping actually can't handle them.

Where to configure it in Flashduty

Flashduty supports inhibition in two places. Both require the On-call Standard plan or above.

  • Alert integration: Alert Integration Details → Alert Processing → Alert Inhibition.
  • Channel: Channel Details → Configuration → Noise Reduction → Inhibit Rules.

Both use the same conditions (New Alert Conditions, Active Alert Conditions, Equal Items). They differ in match scope and in what's recorded:

Integration layer (alert processing)Channel layer (inhibit rules)
Where it appliesBefore routing, to every alert from the integration, whichever channel it routes toOnly to alerts in this channel
Where it finds sourcesOnly active alerts from the same integrationAll active alerts in the channel
Inhibited alertsNot stored and never shown in the incident list; no record afterwardEither dropped, or kept in the alert list with the Alert silenced/inhibited mark

Node → Pod crosses teams. The node alert routes to the platform team's channel, and Pod alerts route to 12 application channels. Application channels never see the node alert, so a channel-layer rule has no source to match. This rule has to live at the integration layer. That requires both kinds of alerts to come from the same integration, for example one Alertmanager pushing to one Prometheus Alertmanager integration. If node alerts come from a different monitoring system through a different integration, the integration-layer rule can't match either.

For dependencies inside one team, such as a service's Critical alert inhibiting Warning alerts for the same check, configure the rule in that team's channel and choose Retain and Mark.

If you can't change the alert rules, add the node label with label enhancement on the integration. The Pod-to-node mapping changes constantly, so you need API mapping against your own service, which requires the Pro plan or above. Label enhancement runs before alert processing, so the added label is available to inhibition conditions.

Don't let inhibition swallow alerts silently

The biggest risk is a wrong rule: an alert that should fire is inhibited, and nobody notices until users complain. Integration-layer inhibition leaves no record, so add two checks when you configure it:

  • Before saving, run the rule preview on the right of the Alert Processing tab. Pick one Pod alert and one service error-rate alert (use Custom to paste event JSON for alerts you haven't seen in production yet). Confirm the first shows Inhibited and the second shows Unchanged.
  • Keep the conditions narrow. List the specific Pod alert names in the effect conditions instead of matching every alert with a node label.

For channel-layer rules with Retain and Mark, filter by Silenced/Inhibited and review the inhibited alerts regularly. Look for two things:

  • Was the source the real root cause? For example, a brief node flap that inhibited an unrelated Pod failure.
  • Did an inhibited alert recover long after the root cause did? If so, it probably has its own problem.

For configuration details, see Inhibit rules and Alert inhibition in the docs. You can try it free in the Flashduty console.

Related articles

Less noise. Faster recovery.

Start free, no credit card required. Or book a demo to see the full incident workflow end to end.