One Incident, One Alert: Keying, Deduplicating and Wording Supervisor Alerts for Agent Runtimes
Executive Summary
A small self-hosted AI-agent system has a supervisor process that watches a long-running agent in a terminal session. One morning the agent's model-provider authentication failed for about 50 minutes. A user message waited the whole time. The supervisor sent an alert to the owner's chat, then a near-identical second alert a minute later. The text showed a raw internal state name (something like session_auth_blocked) that the owner had to ask about. After recovery, no message said so.
Each defect has a standard fix in mature alerting systems. Those systems are built for teams and fleets, so most of their machinery is too much for one owner. The ideas are small, though. This article separates the ideas from the machinery.
Conclusions:
- Key the incident on the symptom of one subject, not on its cause, the detector, the time, or the process. A good key looks like
agent-main/cannot-answer. It has no timestamp, PID, restart counter, error string, detector name or cause. Causes are attributes of the incident and may change while it is open. PagerDuty and Opsgenie both state the rule: a later event with the same key joins the open alert instead of creating a new one. - Use a short lifecycle: open, optional slow reminder, resolve. On the normal path that is one message on open and one on resolve. Put a short delay on both transitions (a pending period in, a "keep firing" period out) so flapping does not become a message storm.
- Persist a tiny incident record to disk, including whether each message was delivered. In-memory dedup is lost on every supervisor restart, a plausible cause of a duplicate one minute later. A delivery state per message (pending, unknown, sent) lets the supervisor retry what failed, skip the resolve for an alert the owner never got, and keep the duplicates from an ambiguous send small. About nine fields in a JSON file or SQLite row are enough.
- Write for the owner. Say what happened, what it affects (with a number and a clock time), whether the owner must act, and what to do. Put the machine code in a footer, never in the sentence.
- Send alerts over a path that does not depend on the failing component, and keep the model out of the alert text. A model-auth failure is the moment the model cannot write anything.
- Do not build a PagerDuty. A keyed record, a small state machine, two timers, a plain template and a direct send path are enough.
One caution: I do not know why the second alert fired. "Two checks or a restart re-detected the condition with no memory of the first alert" is a hypothesis that fits the symptoms. The design below removes all the plausible causes anyway.
1. What the reference systems do
| System | What identifies "the same problem" | Repeats | Recovery |
|---|---|---|---|
| Prometheus Alertmanager | group_by: "The labels by which incoming alerts are grouped together." | group_wait before the first notification of a group, group_interval between later ones, repeat_interval (default 4h) before repeating | send_resolved: "Whether to notify about resolved alerts." Default true for most integrations; email, Rocketchat, Slack and WeChat default to false |
| PagerDuty Events API v2 | dedup_key, max 255 characters | Later events with the same key are "applied to an open alert matching that dedup_key" | A resolve event with the same key |
| Opsgenie | alias: "user-defined unique identifier for 'open' alerts" | "at most one open alert with the same alias"; repeats raise a Count | Alias is unique only among open alerts |
| Grafana alerting | Alert instance (label set) | Pending period in; "keep firing for" out | Recovering state, then Normal and Resolved |
| Nagios / Icinga | Host or service object | Soft/hard states, flap detection, re-notify interval | Recovery notification |
Sources: Alertmanager configuration, PagerDuty, Opsgenie, Grafana, Nagios, Icinga.
The common pattern: the system, not the detector, decides what counts as "the same". It keeps a record of what it already told people. Opening and closing a problem are two events that both get a message.
Google's SRE book gives the target: noisy alerts "should be tweaked to approach a 1:1 alert/incident ratio" (Being On-Call). Here that means one alert per incident.
2. Choosing the incident key
2.1 One key per symptom of one subject
The key answers: "If I get this signal again, is it a problem the owner already knows about?"
PagerDuty: the dedup_key "can be specified when submitting the first trigger event that creates an alert." If omitted, PagerDuty generates one, and "A trigger event sent without a dedup_key will always generate a new alert" because the value is a unique UUID (PagerDuty). An unstable or missing key therefore means every detection is a new alert. If the supervisor in the motivating case keyed its alerts that way, that alone would explain the second alert. Without logs this is one hypothesis among several (see the last section), and the design below does not depend on which one is true.
Opsgenie, from the other side: when a source creates an alert while one with that alias is open, "the Count value of the open alert will be increased by one instead of creating another alert." Repeats go to the activity log, not to a new notification (Opsgenie).
2.2 What goes in the key
| In the key | Stored as attributes, not in the key |
|---|---|
Subject (agent-main) | Timestamps, counters, attempt numbers |
Symptom class at the level the owner experiences (cannot-answer) | Cause code (AUTH_REJECTED, PROVIDER_UNAVAILABLE) and provider name, which can change during one incident |
| PID, session ID, restart count | |
| Raw error text, HTTP status, stack trace | |
| Which detector or check noticed it |
The key must survive four events unchanged: the same detector firing again, a supervisor restart, a different detector noticing the same symptom, and the cause changing while the symptom lasts. A readable string is better than a hash because you can read it in logs and the state file.
2.3 Symptom or cause?
The SRE book: "The 'what's broken' indicates the symptom; the 'why' indicates a (possibly intermediate) cause." It calls this "one of the most important distinctions in writing good monitoring with maximum signal and minimum noise" (Monitoring Distributed Systems). Rob Ewaschuk: "Include cause-based information in symptom-based pages or on dashboards, but avoid alerting directly on causes", and print "a terse summary of all of your cause-based rules that are firing in every page" (My Philosophy on Alerting).
For a supervisor:
- The incident is the symptom:
agent-main/cannot-answer, meaning the agent is not processing the owner's messages. - Detectors for causes (auth rejected, process crashed, terminal hung, rate limit) do not open incidents of their own. They attach a cause code to the one open incident. The most specific code wins, and the others go in an "also seen" field.
- This is what Alertmanager inhibition does at fleet scale: "suppressing notifications for certain alerts if certain other alerts are already firing" (overview). One agent needs only a ranked list of cause codes, not rules.
Trade-off: if the cause changes mid-incident and the owner's required action changes (auth failure becomes a rate limit), send one short "update" in the same incident. If only technical detail changes, update the record silently.
This design keys on the symptom. Keying on cause (agent-main/model-auth) gives one key per cause, so an outage whose cause changes, or that two detectors explain differently, becomes two incidents and two alerts: the failure this article is trying to remove. Causes stay attributes of the one incident.
2.4 A supervisor restart is a detector, not an incident
systemd's Restart= restarts a service "when the service process exits, is killed, or a timeout is reached"; RestartSec= "Defaults to 100ms" (systemd.service). Units "started more than burst times within an interval time span are not permitted to start any more" (systemd.unit). Each restart can re-detect the same condition. Do not alert per restart. Treat "gave up restarting" as a cause code on the same incident.
3. Lifecycle: open, remind, resolve
3.1 State machine
condition holds for N probes / T_pending
(none) ─────────────────────────────────────────────► OPEN (send "opened" once)
│ ▲
long, slow interval │ │ condition returns inside
(send "reminder") │ │ T_clear: no message
▼ │
condition absent for T_clear ► RESOLVING
│
▼
RESOLVED (send "resolved" once, gated on
the open's delivery: section 4.2)
The diagram is the normal path. Section 4.2 adds what happens when a send fails or its outcome is unknown.
After RESOLVED, if a resolve message went out (or may have), the same key returning within a reopen window reopens the incident with one short "back again" message. Outside the window, or after an incident that was closed without any message, it is a new incident. PagerDuty always starts a new one: new trigger events with a resolved key "won't re-open the incident. Instead, a new incident will be created."
3.2 Hysteresis: delay in, delay out
Prometheus's for clause makes it "wait for a certain duration" before "counting an alert as firing"; without it, rules "become active on the first evaluation" (alerting rules). Grafana's pending period is "how long the condition must be met to start firing", and you set it "to prevent unnecessary notifications caused by temporary issues."
On the way out, Prometheus's keep_firing_for keeps an alert firing "for the specified duration after the firing condition was last met", to "prevent situations such as flapping alerts." Grafana makes it a visible state: Recovering is "The state of a firing alert when the threshold is no longer breached, but the keep firing for period has not yet elapsed." And, for a condition that returns while the alert is Recovering: "If the alert condition is met again, the alert transitions back to the Alerting state, and no new notifications are sent" (Grafana). That sentence is the core of flap suppression. A return inside the clear window is the same incident, with no new message.
Google's workbook names the cost of each delay. Detection time: "Long detection times can negatively impact the error budget." Reset time: "How long alerts fire after an issue is resolved. Long reset times can lead to confusion or to issues being ignored" (Alerting on SLOs).
For a supervisor probing every 30-60 seconds, a starting shape is: open after two or three consecutive failures, resolve after two or three consecutive successes. These numbers are my illustration, not from a source. Skip the pending period for failures known to need a human, such as an authentication rejection from the provider.
3.3 Flapping
Nagios defines flapping as a state that "changes state too frequently, resulting in a storm of problem and recovery notifications." It stores "the results of the last 21 checks," computes a percent state change, and compares it with high and low thresholds. When flapping starts it will "Send a 'flapping start' notification" and "Suppress other notifications"; when it stops it sends "a 'flapping stop' notification" and lifts the block (Nagios).
Icinga's soft/hard states are a simpler form: a problem is re-checked in a SOFT state, and only if "still non-OK after the re-checks" does it become HARD and "notifications are sent." Icinga also sends Recovery notifications only to "users who have been notified of a problem before" (Icinga). Copy that: never send "resolved" for something you did not announce. Section 4.2 covers the case where the supervisor does not know whether the announcement arrived.
A cheap version for one owner: count reopens per key in a rolling window. Past a small count, send one "unstable" message, mute that key's open/resolve messages, and send one "stable again" message after a quiet period.
3.4 Reminders
Alertmanager's repeat_interval is "How long to wait before repeating the last notification." Datadog says reminders exist "to remind your team that a problem is not solved" and to "Include only extra details" rather than repeating the original (Datadog). For one owner: one reminder after about an hour, then every several hours, each carrying new facts (duration, messages now waiting). Skip it if the owner has already acted, and send it only once the open message is recorded as delivered (section 4.2).
3.5 The resolve message
PagerDuty: a resolve event with the same key puts the incident into the resolved state, and "Once an incident is resolved, it won't generate any additional notifications." A resolve with nothing open goes nowhere: "Acknowledge or resolve events without a currently open alert will not create a new one."
Three points for chat:
- Resolved messages may be off by default. Alertmanager's
send_resolveddefaults to false for Slack, email, WeChat and Rocketchat. If a tool posts to chat for you, check it. A silent resolve was the fourth defect here. - Point back to the alert. Use the chat platform's reply-to on the stored message ID of the open alert. Without that feature, repeat the incident number and the original time.
- Resolve only what was announced. A chat API has no open alert to check a resolve against and posts whatever it is given, so the supervisor has to check itself: the ordinary resolve goes out only when the open message is recorded as delivered (section 4.2).
4. Persisting state across supervisor restarts
An in-memory "already alerted" flag fails simply. The supervisor restarts, the flag is gone, the condition is still true, and the first check looks like a new problem.
Alertmanager keeps a notification log for this. Its HA page describes it as "Records of which notifications were sent to prevent duplicates". Each instance persists it in a snapshot file (default data/nflog), and on restart the "Instance loads silences and notification log from disk." In its notification pipeline, "Notify & retry intermittent failures" comes before "Update notification log", so a send can happen without being recorded. The page lists "At-least-once delivery" among its design goals and, for a network partition that splits the cluster, says: "This is intentional - Alertmanager prefers duplicate notifications over missed alerts" (HA). The one-owner version is a file, and section 4.2 makes the same choice on a smaller scale.
4.1 Minimal durable record
One JSON object or row per incident:
| Field | Example | Why |
|---|---|---|
key | agent-main/cannot-answer | Dedup identity, unique among non-closed incidents |
state | open, resolving, resolved | Drives the next message |
opened_at | 2026-11-22T10:02:10+08:00 | Duration and the "since" in text |
last_seen_at | 2026-11-22T10:51:40+08:00 | Clear-window timing |
cause_code | AUTH_REJECTED | Machine code for the footer |
open_send | {"status": "sent", "tries": 1} | Delivery state of the open message (section 4.2) |
resolve_send | null until the resolve is due, then the same shape | Delivery state of the resolve message |
last_reminder_at | null | Reminder pacing |
chat_msg_ref | platform message ID | So resolve can reply to the open alert |
Add a short human incident_id (#14) and an append-only history file with one line per transition and per send attempt. The history answers "what did I tell the owner at 10:02?".
4.2 Delivery state, write order and reconciliation
Each owner-facing message the record tracks (the open and the resolve) has one of three delivery states:
pending: not delivered, and known not to be. Resending cannot create a duplicate.unknown: a send started and its outcome is not known (a timeout, a connection dropped after the request went out, a 5xx, or a crash mid-send). Resending may duplicate; not resending may lose the message.sent: the platform accepted it. For the open message,chat_msg_refis stored with it.
tries counts the sends that may have reached the owner, so pending always goes with tries 0.
Write order:
- Detect. Look up the key. An open record exists: update
last_seen_atand stay silent. - No open record: write
state=openwithopen_sendset topending,tries0. - Before each call to the messaging API, write
unknownandtries + 1to disk. - After the call: on success write
sent(and the message reference). On a refused connection or a definite rejection (an error response, such as a 4xx, saying the message was not accepted), this attempt did not go out: undo its increment (tries - 1) and set the status from what is left. Withtriesback at 0, no attempt may have landed, so writepending. Withtriesstill above 0, an earlier ambiguous attempt may have reached the owner, so the status staysunknown. On a timeout, a connection dropped after the request went out, or a 5xx, leaveunknown: the platform may have accepted it before failing.
A rejection settles only its own attempt. An open whose first send timed out and whose resend was rejected stays unknown with tries 1, and if the condition then clears, the gate below sends the standalone resolve. The growing retry delay counts every attempt, rejected ones included, separately from tries.
A crash at any point leaves one of the three states on disk, so a restarted supervisor sees what the running one would have seen.
Reconciliation runs on every engine tick while the supervisor is up, and once at startup, with the same rules:
pending: send again after a growing delay. There is no duplicate risk, so there is no cap.unknown: send again, with a first line saying this may repeat an earlier alert, whiletriesis below a small cap (three is my illustration). The incident number in the footer lets the owner match the copies. At the cap, stop, write a local log line, and use the fallback channel if there is one.sent: nothing to do.
The resolve message goes through the same states and rules. What changes is the gate in front of it. When the clear window ends, resends of the open stop and the gate reads open_send:
sent: the ordinary resolve, replying tochat_msg_ref.pending: the owner was never told. Send no resolve, and close the record with a history line.unknown(including an open whose resends hit the cap): the owner may or may not have the alert. Send a standalone resolve that reads correctly either way: no reply-to, the time span stated, and the incident number (example in section 5.4).
If the condition returns while the resolve is still pending, cancel the resolve and go back to OPEN without a message; the owner's picture (still open) is already right. If the resolve is unknown or sent, the return is a reopen (section 3.1). A reopen starts a fresh open_send for the "back again" message and clears resolve_send, so that message follows the same rules. Reminders and the cause "update" of section 2.3 refer to the open alert; send them only when open_send is sent, as single attempts outside the retry rules.
The trade-off: on the normal path, with no crash and no timeout, this sends exactly one open and one resolve per incident. Only ambiguous sends break that, and the cap decides which way they fail. Each unknown send that did arrive adds one copy, and repeated crashes in the send window count against the same cap because tries is on disk. With a cap of three, one message can reach the owner up to three times. Stopping at the cap risks losing a message that never arrived. That is Alertmanager's choice of duplicates over missed alerts, on a small scale. An owner who prefers silence to repeats can set the cap to one, which never resends an unknown message.
4.3 Startup reconciliation
Load the file. Run the reconciliation rules of section 4.2 on every pending and unknown send; a restart adds no rule of its own, and because tries is on disk a crash loop cannot reset the cap. A condition that matches an open record creates no new incident and no new message beyond that record's own unsent ones. For open records whose condition is gone, run the clear window, then apply the resolve gate. If the file is missing or corrupt, log it loudly and send one honest message ("I restarted and lost my alert memory; a repeated alert may be a duplicate"). Keep the file on a path that survives restarts, not /tmp. A user-reported Alertmanager issue (secondary source, see below) describes a non-persistent data directory causing every firing alert to be re-notified after each restart.
5. Wording for a non-engineer owner
5.1 What to include
The SRE book: "Every page should be actionable." Prometheus: "avoid having pages where there is nothing to do," and "Alerts should link to relevant consoles and make it easy to figure out which component is at fault" (practices). Datadog suggests including "a step-by-step way to resolve the problem" in the message. Prometheus's own example summaries are plain statements ("Instance {{ $labels.instance }} down") with durations in the description, and annotations are for "alert descriptions or runbook links."
Turn that into five slots, in this order:
- What happened, in the owner's words.
- Impact, with a number and a time: "1 message from you has been waiting since 10:00."
- Do you need to act? Say "Action needed" or "No action needed, I'm retrying."
- What to do, one concrete step, or "nothing, I will tell you when it is fixed."
- Footer: incident number and machine code.
5.2 Rules
- Lead with the effect ("Your assistant is not answering"), not the component.
- Use clock times in the owner's timezone, not "5m ago", which goes stale in chat.
- Take counts from the live system at send time.
- Say who is doing what: "I'm retrying every minute" or "I can't fix this myself."
- Keep it to about six lines. Put the rest behind a "reply
details" command. - No enum names, state names, file paths or stack traces in the sentences.
- Use fixed templates filled by code (see section 6).
5.3 Human text plus machine code
PagerDuty shows the shape: payload.summary is "A brief text summary of the event" (max 1024 characters), custom_details holds "Additional details about the event and affected system", and links is a "List of links to include." Do the same locally: the record holds cause_code, and a lookup table in code maps each code to an owner sentence and an action line. An unmapped code falls back to a generic sentence ("Something is wrong with the assistant; details attached") and logs an error so a developer adds the mapping. The raw state name never reaches the owner, even on the fallback path.
5.4 Good and bad
Bad (the motivating case, paraphrased):
ALERT: agent state session_auth_blocked, restarting.
ALERT: agent state session_auth_blocked, restarting. (a minute later)
An internal name, no impact, no instruction, two copies, no resolve.
Good, open:
Your assistant can't sign in to its AI provider, so it is not answering.
Since 10:02. 1 message from you has been waiting since 10:00.
Action needed: please sign in again, or check that the subscription
is active. I'll keep checking and tell you when it works.
Ref #14 - code: AUTH_REJECTED
Good, resolve (as a reply to the open message):
Fixed at 10:53. The assistant is answering again after 51 minutes.
Your waiting message is being handled now.
Ref #14 - code: AUTH_REJECTED (resolved)
The resolve text may claim only what the supervisor verified. If it cannot see the queue drain, say less.
Good, standalone resolve (the open alert's delivery is unknown, section 4.2; sent without reply-to):
Between 10:02 and 10:53 your assistant could not answer because it
could not sign in to its AI provider. It is working again.
If you got an alert about this, it is over.
Ref #14 - code: AUTH_REJECTED (resolved)
Good, transient failure (no action needed):
Your assistant had a short outage (the AI provider is not responding).
No action needed, I'm retrying every minute. 1 message waiting since 10:00.
Ref #15 - code: PROVIDER_UNAVAILABLE
6. Channel independence
An alert must not travel through the thing that failed. If the owner-facing chat bridge is part of the agent system, or the agent drafts the alert, a model outage cuts the alert off.
- Send directly from the supervisor. One plain HTTP call to the messaging API (or SMTP, or a push service), with a credential the supervisor holds. Not through the agent, its terminal, its tools or its model.
- No LLM in the alert path. Templates only.
- Make the send resilient. Record the delivery state of every send (section 4.2). A definite failure is retried with a growing delay, while the supervisor runs and after a restart; it leaves the message
pendingonly if no earlier attempt may have landed. A timeout isunknownand follows the capped resend rule. Write a local log line for each failure. A second channel for first-channel failure is a cheap extra. - Watch the watcher (optional). The usual answer is a dead man's switch: the supervisor pings an outside service on a schedule, and the service alerts when pings stop. Healthchecks.io: "When Healthchecks.io does not receive the HTTP request at the expected time, it notifies you," and grace time is "the amount of extra time to wait when a cron job is running late before declaring it as down" (docs). Keep the checker off the supervisor's machine.
7. What not to build
For one owner, skip: routing trees and matchers (one recipient); a grouping engine (one incident per subject by construction); a silences UI (a "pause alerts for an hour" command is enough, if even that); clustering and gossip (one process); escalation policies and on-call schedules (the owner is the only responder); acknowledge workflows (an owner reply can mean "seen"); multi-channel fan-out (one chat plus at most one fallback); the 21-sample statistical flap detector (a reopen counter gets most of the value); similarity-based or ML dedup (hard keys already work); a templating language or runbook wiki (a dictionary of cause code to sentence and action).
Add more only when there are several owners or agents, several channels, a need to record who acknowledged, or an on-call rotation.
The same restraint applies to detectors. Google's workbook gives a low-precision example: "you could receive up to 144 alerts per day every day, not act upon any alerts, and still meet the SLO." Fewer, better alerts.
8. Design sketch
Parts:
- Detectors (any number). Each calls
report(subject, cause_code, details). They never send messages and never know about chat. - Incident engine. Owns the incident file, the state machine, the pending, clear and reminder timers, and the delivery reconciliation of section 4.2 on every tick.
- Notifier. Renders a template for (transition, cause code), sends over the independent channel, and returns one of three outcomes: sent (with a message reference), failed, or unknown.
- Heartbeat (optional). Pings an external service while the supervisor loop runs.
The pending-period counter can live in memory. Losing it on restart delays an alert by a few probes and never creates a duplicate. Delivery state cannot: it must be on disk.
How it prevents the original defects:
| Defect | Mechanism |
|---|---|
| Duplicate alert a minute later | Stable key; open record means silence; record and delivery state survive restart; ambiguous resends are capped |
| Two detectors or two causes for one outage | Both attach to the same symptom key; extra cause goes in "also seen" |
| Raw state name in text | Code-to-sentence table; code only in the footer |
| Owner had to ask what it meant | Five-slot template with explicit "action needed" |
| No resolve message | Resolve transition sends one message replying to the stored message ref, gated on the open's delivery state |
| Alert unreliable during a model outage | Direct send path; no model in the loop |
9. Checklist
- Key is
subject/symptom, with no timestamps, PIDs, counters, error text, detector names or cause codes. - All detectors of one symptom map to one key, whatever cause they see; causes are attributes; a restart never creates an incident.
- Pending period before open; clear period before resolve; a return inside the clear window is silent.
- On the normal path, one open message and one resolve message per incident. No resolve when the open is known undelivered; a standalone resolve when its delivery is unknown.
- Reminders are slow, add new facts, go out only after a delivered open, and stop once the owner acts.
- Reopen counter with a single "unstable" message.
- Incident record on durable disk, with a delivery state (
pending,unknown,sent) for the open and the resolve; writeunknownbefore each send and the outcome after. - Reconcile on every tick and at startup:
pendingretries with backoff;unknownresends as a possible repeat up to a small cap kept on disk. Choose the cap knowingly: higher risks duplicates, lower risks a lost message. - Text has: what happened, impact with number and clock time, action needed or not, one concrete step, footer with incident number and code.
- No internal enum, state name, path or stack trace in sentences; unmapped codes get a generic fallback.
- The ordinary resolve replies to the original; every resolve claims only verified facts.
- Alert is sent directly by the supervisor, from templates, with retry and persisted delivery state.
What I could not confirm
- Why the duplicate fired in the motivating case. I have no logs. Restart with in-memory state, two detectors, or an unstable key (section 2.1) are plausible explanations, not facts.
- Good numbers. Nagios's 21 checks is documented, but I found no source recommending thresholds for a one-owner agent supervisor. The numbers in sections 3.2 to 3.4 and the resend cap in section 4.2 are my illustrations.
- Alertmanager's on-disk notification log. The HA page states that each instance stores silences and the notification log in snapshot files (defaults
data/silencesanddata/nflog) and loads them from disk on restart. That the directory is set by--storage.path, and that a non-persistent directory causes re-notification, came from search-result summaries and user GitHub issues, not a primary page. The HA page describes a cluster; applying its duplicates-over-misses choice to one process is my analogy. The Alertmanager overview has no deduplication section; it names deduplication only in its intro. group_waitdetail. That an alert resolving beforegroup_waitends produces no notification comes from the fetch tool's summary of the configuration page.- The Prometheus Watchdog pattern. An always-firing alert routed to an external heartbeat service appears only in community guides. I did not verify it against Prometheus or kube-prometheus docs. Healthchecks.io's docs support the generic heartbeat idea.
- Opsgenie's status. Search results say Atlassian is winding Opsgenie down, with end of support in 2027. I could not open the primary page to confirm dates. Its alias semantics are still a useful reference. The Opsgenie page does not say what happens when an alias arrives after the alert is closed. A new alert is likely, but that is an inference.
- Grafana and Icinga gaps. Grafana uses "flapping conditions" without defining flapping. The Icinga page I fetched was cut off before any flap-detection section, so I cite only its soft/hard state and recovery text.
- Wording evidence. I found guidance on what an alert should contain (Google SRE, Ewaschuk, Prometheus, Datadog) but no empirical study of which wording non-engineers act on fastest. The five-slot template is my synthesis, not a tested format. An Atlassian alert-fatigue article could not be read by my tool.
- PagerDuty URLs.
developer.pagerduty.compages redirect todocs.pagerduty.com; all PagerDuty quotes come from the new URL.
Sources
- Alertmanager configuration: https://prometheus.io/docs/alerting/latest/configuration/
- Alertmanager overview: https://prometheus.io/docs/alerting/latest/alertmanager/
- Alertmanager high availability: https://prometheus.io/docs/alerting/latest/high_availability/
- Prometheus alerting rules: https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
- Prometheus alerting practices: https://prometheus.io/docs/practices/alerting/
- PagerDuty, Sending an Alert Event: https://docs.pagerduty.com/developer/send-alert-event
- PagerDuty, Events API v2 overview: https://docs.pagerduty.com/developer/events-api-v2-overview
- Opsgenie alert de-duplication: https://support.atlassian.com/opsgenie/docs/what-is-alert-de-duplication/
- Grafana alert rule evaluation: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rule-evaluation/
- Grafana error and no data states: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rule-evaluation/nodata-and-error-states/
- Nagios Core 4, state flapping: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/flapping.html
- Icinga 2 monitoring basics: https://icinga.com/docs/icinga-2/latest/doc/03-monitoring-basics/
- Google SRE book, Monitoring Distributed Systems: https://sre.google/sre-book/monitoring-distributed-systems/
- Google SRE book, Being On-Call: https://sre.google/sre-book/being-on-call/
- Google SRE Workbook, Alerting on SLOs: https://sre.google/workbook/alerting-on-slos/
- Rob Ewaschuk, My Philosophy on Alerting: https://docs.google.com/document/u/0/d/199PqyG3UsyXlwieHaqbGiWVa8eMWi8zzAn0YfcApr8Q/mobilebasic
- systemd.service: https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html
- systemd.unit: https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html
- Datadog monitor notifications: https://docs.datadoghq.com/monitors/notify/
- Healthchecks.io, monitoring cron jobs: https://healthchecks.io/docs/monitoring_cron_jobs/

