Skip to content

How Alert Grouping Works

A single problem rarely fires a single alert. One deploy can spike CPU across forty hosts at once; one failing database can set off the app, the queue, and the health checks together. That’s how a real issue turns into an alert storm.

Alert grouping correlates those related alerts and folds them into a single Alert Group, so one incident reaches you instead of forty notifications. This page shows how the engine decides what belongs together, and how to steer it.

KloudMate groups individual firings, not whole rules.

One alert rule can fire on many targets at once. A High CPU rule fires once per host that crosses the line; a pod-restart rule fires once per pod. Each firing is its own instance, carrying its own labels (host_name, pod, and so on). Grouping works at the instance level, so a single rule’s firings can spread across a group, each placed by its own labels.

Every alert runs through a routing rule, and each rule groups its alerts one of two ways.

Static grouping is deterministic: you pick the labels, and alerts that share those values land together. Auto (AI) grouping hands the decision to the correlation engine, which links related alerts on its own and learns which of your alerts tend to fire together over time.

StaticAuto (AI)
Who decidesYou, with Group-by keysKloudMate’s correlation engine
Based onThe values of your group-by labels: one group per distinct valueThe strongest connection the engine can find
One rule on host=minikube and host=fedoraTwo groups, one per hostOne group

You set the mode per rule with the Alert grouping control. See Routing Rules.

Auto grouping treats every firing of one rule as the same issue on different targets, so they always stay in a single group, even when the hosts, pods, or containers differ.

Take that deploy again. Your High CPU rule fires on minikube, fedora, and dozens more. Auto grouping keeps them as one incident instead of scattering them into dozens, because they’re the same rule reporting on different machines. A rule firing on 500 hosts reaches you as one incident with 500 instances, not 500 separate notifications.

  • Choose Static when you already know the dimension you care about and want deterministic groups: one per host, per cluster, or per service.
  • Choose Auto (AI) when the connections aren’t obvious from labels (a slow database dragging down three services that don’t share a tag) and you want the engine to surface them for you.

Auto grouping analyzes each burst of alerts and links them on the strongest connection it can find, in this order:

  1. Same alert: every firing of one rule (always together, as above).
  2. Shared label: firings that share a key=value, like pod=api-7.
  3. Fired together: alerts with a track record of going off at the same time.
  4. Known cascade: a known pattern where trouble in one resource sets off another.
  5. Topology: the alerts are on resources that are directly connected.
  6. AI: a machine-learning model makes the call on whatever’s left.
  7. On its own: nothing links it, so it stays a group of one.

However alerts link, the group’s Grouped by fact shows the strongest connection that covers the whole group. Hover over it for the details, such as “Fired together 14 times in the last 30 days.” The engine also learns continuously: a new workspace starts with less history, and grouping gets more precise over the first few days as the model sees which alerts travel together. See Cold start.

Auto grouping follows a few predictable rules:

One rule, one group. Auto grouping always keeps a single rule’s firings together, across every host it fires on. To split them, use Static grouping with host_name as the Group-by key.

Labels match on key and value. A shared label links alerts only when the key and the value both match, and Static grouping keys on the value. Two different hosts group together because they share a rule, not because host_name=minikube and host_name=fedora count as the same.

Grouping is per instance. Every firing is placed on its own, by its own labels. When one rule fills a group, that’s Auto keeping its firings together, one instance at a time.

  • Routing Rules: set the grouping mode and Group-by keys.
  • Alert Groups: the group you get, and where its Grouped by reason shows.