Skip to content

Incidents and correlation

Argavon turns the alerts your tools send into incidents. One incident is one problem, no matter how many alerts it fires. This page explains how alerts are grouped, how an incident moves from open to resolved, and what Argavon records along the way.

From alert to incident

Every alert that arrives goes through the same steps:

  1. Fingerprint. Argavon gives the alert an identity, so repeats of the same alert can be recognised.
  2. Mute check. If an admin has muted alerts that match this one, the alert is stored and written to the mute log, but it never opens or joins an incident. See Silences.
  3. Deduplication. A repeat of an alert that was already seen in the last 5 minutes is linked to the open incident, but it does not count as a new event.
  4. Correlation. If an open incident already covers this problem, the alert joins it.
  5. Create. Otherwise Argavon opens a new incident.

All of this state lives in PostgreSQL, so it works the same with one server or several.

The fingerprint

Alertmanager, Grafana and Zabbix send their own identity for each alert, and Argavon uses it as is. For Zabbix it is built from the trigger id and the host.

For every other alert, Argavon computes a fingerprint:

  • It takes the alert's source, service and title (or the message, when there is no title), lower-cased and trimmed.
  • It removes words from the title that name one instance rather than the kind of problem:
    • numbers longer than 3 digits (ports, counts, ids)
    • IPv4 addresses, with or without a port
    • UUIDs
    • hex strings of 12 or more characters that contain a digit (container ids, digests)
    • dashed words with a segment of 8 or more hex characters containing a digit (deployment hashes such as checkout-7d9f8b6c4-x2k9p)
    • Kubernetes pod names: three or more dashed parts ending in a 5-character part with a digit
  • It hashes source|service|title with SHA-256 and keeps the first 16 hex characters.

Severity is not part of the fingerprint. An alert that goes from warning to critical is still the same problem and stays in the same incident.

Words such as http-503-gateway are kept, so different errors on the same service do not collapse into one fingerprint.

Correlation rules

When an alert is not a short-term repeat, Argavon looks for an open incident to add it to, in this order:

  1. Same fingerprint. Any open or acknowledged incident with the same fingerprint, however old. A disk alert that fires every 30 minutes stays in one incident.
  2. Same service. An open or acknowledged incident for the same service (case-insensitive) whose last alert was less than 5 minutes before this one.
  3. Dependent services. An open or acknowledged incident, within the same 5 minutes, for a service that depends on this service or that this service depends on, according to your topology.

If none matches, a new incident is created.

Both windows (deduplication and correlation) are 5 minutes. They are fixed in code and cannot be changed with configuration.

What happens when an alert joins an incident

  • The event count goes up by one, and the last-event time moves forward.
  • Severity only escalates. If the new alert is more severe, the incident takes its severity. A less severe alert never lowers it. The order is critical, high, medium, warning, low.
  • The correlation reason says how many alerts were grouped, for example "4 alerts grouped for service 'checkout-api' within 5-min window".
  • A pending auto-close is cancelled (see Auto-close on recovery).

What happens when an incident is created

When Argavon opens a new incident it:

  • Sets the title from the alert title, or the message, or "Critical incident on checkout-api" when both are empty.
  • Matches the alert against the built-in knowledge base. If a pattern matches, the incident starts with that pattern's root cause, reasoning and confidence. See Root-cause analysis and AI.
  • Computes the priority score (below).
  • Starts escalation, so the right person is paged. See Escalation.

Priority score

Each incident gets a priority score from 0 to 100:

Part Points
Severity critical 40, high 30, medium 15, unknown 15, low 5
Event count 4 per event, at most 20
Risk score risk score ÷ 5, at most 20
Seen before 10 if the same problem happened before
Impacted services 3 per impacted service, at most 10

The total is capped at 100. You can sort the incident list by it with sort_by=priority_score.

The score is computed when the incident is created and again each time an alert joins it, so a growing incident climbs the list.

Lifecycle

An incident has three states:

State Shown in the web app as Meaning
open New Nobody has picked it up yet.
acknowledged In progress Someone is working on it.
resolved Resolved The problem is over.

You change the state with three actions:

  • Acknowledge moves an open incident to acknowledged.
  • Resolve moves an open or acknowledged incident to resolved.
  • Reopen moves a resolved incident back to open. If a newer incident is already open for the same alert, reopening is refused (HTTP 409) with "incident is already open for the same alert: work on that one instead".

Changing the state needs the operator role. Each change is written to the incident's status history and the audit log, with who made it.

An acknowledged incident still counts as open for correlation: new alerts keep joining it.

Auto-close on recovery

Sources that send a "resolved" message (for example Alertmanager when an alert stops firing) let Argavon close incidents on its own:

  1. When every alert in an open incident has recovered, a quiet period starts. It is 5 minutes by default; set AUTO_CLOSE_QUIET_PERIOD to change it.
  2. If any alert joins or fires again during the quiet period, the close is cancelled.
  3. When the quiet period ends and every alert is still recovered, the incident is resolved by neuroops-auto-close, with a note such as "Resolved automatically: all 3 alert(s) recovered and stayed quiet for 5m0s."

While a close is pending, the incident detail shows when it will happen (auto_close_at in the API).

Incidents that hold alerts from sources that never send a recovery (OpenTelemetry, for example) are never auto-closed. Resolve them by hand.

Assignment

Each incident can have one owner.

  • An operator can assign any active member of the workspace, assign it to themselves ("Assign to me"), or unassign it.
  • When a page reaches someone (an escalation step or a manual page) and the incident has no owner yet, that person becomes the owner. A page never takes an incident away from someone who already owns it.
  • Every change is noted on the timeline, for example "Assigned to x by y".

In the incident list you can filter by owner: anyone's, assigned to me, or unassigned. The API filter is assignee=me, assignee=none or a user id.

Timeline

The incident's timeline shows, newest first:

  • each alert that joined the incident
  • each status change, with its note
  • notes added without a status change (escalation notes, for example), shown as notes
  • remediation actions that were run

Post-mortems

Each incident can have one post-mortem.

  • An operator creates it with Generate post-mortem on the incident's Post-mortem tab (POST /api/v1/incidents/{id}/postmortem/generate).
  • Without a language model configured, Argavon fills a template from the incident: a timeline built from its alerts (times in UTC), the root cause on record with the reasoning behind it, the services affected, and action items from the suggested next steps. Sections Argavon cannot know, such as what fixed it, say what to fill in.
  • With a language model configured, the model writes the sections instead. If the call fails, the template is used.
  • The post-mortem starts as a draft. Edit on the tab (or PUT /api/v1/incidents/{id}/postmortem, operator role) changes its sections and its status: draft, review or published.
  • Regenerate writes a new version. If the team edited the current one, Argavon asks first ("Replace the team's edits?"); the API answers 409 unless you add ?replace_edits=true.

Sample incidents in a new workspace

A new workspace starts with a few made-up incidents so its pages are not empty. Their titles start with [Sample] and they carry a "sample" tag in the incident list and header.

Sample incidents are kept apart from your real data:

  • They are never counted: not in the weekly digest, alert quality, SLOs, risk figures, usage or the status page.
  • They never page anyone, send email, or post to the status page. Paging one is refused, and so is a "Was this alert useful?" vote.
  • A real alert never joins a sample incident, even with the same service and title words.
  • They do not tick steps in the setup checklist.

An admin can remove them all with Remove samples on the dashboard notice, or with DELETE /api/v1/sample-data. The removal is written to the audit log.