Skip to content

docs(alerts): explain when recovery alerts are sent [RED-1416] - #882

Merged
carinaluise merged 17 commits into
mainfrom
carina/red-1416-recovery-docs
Nov 30, 2026
Merged

carinaluise merged 17 commits into
mainfrom
carina/red-1416-recovery-docs

Conversation

@carinaluise

@carinaluise carinaluise commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Affected Components

  • Docs

Notes for the Reviewer

Explains when recovery alerts are sent, including to channels that didn't get the failure alert:

  • New section "When are recovery alerts sent?" in communicate/alerts/overview.mdx.
  • Fixes the two recovery rows of the transition table: a recovery is only sent after a failure or degraded alert for the check (not "directly"), and the degraded recovery rule is about the check, not about what each channel received.
  • Mute and maintenance window pages: a silenced recovery isn't sent later, and a recovery after the silence can arrive without a failure alert.
  • Status page automation: a recovery while the check is muted doesn't resolve the incident.
  • sendRecovery option text, the alert channel list and the URL monitor alert types: degraded recoveries also need degraded alerts selected.

Webapp hint under "a check recovers": https://github.com/checkly/monorepo/pull/7568

Part of RED-1416.

Testing

  • Every claim checked against the results daemon and alerting daemon code on monorepo main
  • Anchor check passes
  • Codex and Claude review rounds

@mintlify

mintlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
checkly-422f444a 🟢 Ready View Preview Nov 30, 2026, 12:20 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@carinaluise

Copy link
Copy Markdown
Contributor Author

Evidence

Mintlify preview (on d0a23620, communicate/alerts/overview, light and dark)

New section When are recovery alerts sent?, light New section, dark Transition table with the changed recovery and escalation rows, light Transition table, dark
  • npm run check:anchors: every internal fragment link resolves. Mintlify link-rot and vale checks pass on the PR.
  • Claims checked against monorepo main:
    • Recovery only after a stored failure or degraded alert, ALERT_RECOVERY override after ALERT_FAILURE_DEGRADED, Location-Based Escalation skip: apps/results-daemon/decision/decide_alert_action.go, escalation.go, types.go.
    • Mute ignored when deciding, so the alert status still updates: apps/results-daemon/store/postgres/check.go.
    • Channel filter (sendRecovery, sendDegraded && sendRecovery), mute and maintenance window skip, channels read at send time: apps/backend/api/daemons/alerting-daemon/src/helpers.ts, AlertingDaemon.ts.
    • Status page incidents not resolved while muted: IncidentManager.ts, V3IncidentManager.ts.
    • Hobby channel types: alert-notification-service/plan-filter.ts.

Review: Claude and Codex Sol and Astra: no wrong claims.

Webapp hint: https://github.com/checkly/monorepo/pull/7568

@carinaluise
carinaluise marked this pull request as ready for review November 27, 2026 17:10

@hlenke hlenke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge · Every recovery rule this PR adds held in an end-to-end test, and CI is green. Two small optional additions are below.

What the tests showed

I deployed failing, degraded and muted checks with webhook channels on a local Checkly, moved them through three states, and read which channel got which alert:

  • A channel with only a check recovers got the recovery without the failure. A channel subscribed while the check was failing got only the recovery.
  • A failure silenced by mute or by a maintenance window was not sent later. The recovery after the silence was sent, without a failure alert before it.
  • A recovery during mute or during a maintenance window was not sent, and not sent later either.
  • ALERT_DEGRADED_RECOVERY went only to the channel with both a check degrades and a check recovers. Failing, then degraded, then passing ended with ALERT_RECOVERY to every channel with a check recovers, also when the failure alert had been silenced by mute.
  • With "alert after 5 failures", two failed runs and a pass sent nothing at all.
  • An automated status page incident stayed open when its check recovered while muted. The control incident of an unmuted check resolved.
  • On an account on the Hobby plan, an incident.io channel got neither the failure nor the recovery.

Not run: the two sentences about parallel checks and Location-Based Escalation. They need runs from several regions, and the local stack has one. The alert decision code on monorepo main matches both.

Sibling pages (optional)

  • constructs/status-page-v3-automation-rule.mdx L8 still says Checkly "resolves it when the check recovers". The two status page pages in this PR now add "unless the check is muted at that moment". The construct page should say the same, since pr_impact.py flags it as a near copy of communicate/status-pages/overview.mdx L45.
  • communicate/status-pages/v2-deprecated.mdx L34 has the same sentence for the old check-to-service automation. I did not test that path.

Merge readiness

  • CI: static-docs-checks, docs-gate, preview-checks, link-rot and the spell check all pass. GitHub reports the PR as mergeable and clean. main has no new commits since the PR's base.
  • Overlap: #774 also edits communicate/alerts/overview.mdx, communicate/alerts/configuration.mdx and communicate/status-pages/incidents.mdx; #874 edits constructs/alert-channel.mdx; #857 edits integrations/alerts/webhooks.mdx. This PR is small and tested, so I'd land it first and rebase the others.
  • The edited snippet snippets/alert-channel-options-text.mdx renders on the alert channel construct pages. I read the new sentence in the snippet; its link target is the new heading, and the link check passes.
  • The new section sits after the transition table and before Testing your alerts, which is where a reader of the table looks next.
  • The web app hint the description links (monorepo pull request 7568) is still open. Nothing in this PR depends on it.

Inline: 0 blockers, 0 important, 1 wording.

What I checked
  • The whole diff from the merge base 336f537 (9 files, 32 additions, 11 deletions), and the full communicate/alerts/overview.mdx and communicate/alerts/configuration.mdx at the PR head for placement.
  • Tested on local Checkly (monorepo 1addd5cd3b, CLI 10.5.0). Changes made by hand for the tests: a maintenance window created and deleted through the API to start and end the silence, one test account moved to the Hobby plan in the database after the deploy (the CLI refuses an incident.io channel on Hobby) and given check runs to spend, and the status page test run on an account that has incident automation. The tests are listed under "What I tested".
  • Monorepo main (1addd5cd3b), in my own words: apps/results-daemon/decision/decide_alert_action.go (a recovery is published only when the last alert of the check was a failure or degraded alert; a degraded recovery becomes ALERT_RECOVERY when the check went from failing to degraded after an alert; degraded to failing skips the thresholds except the location threshold of a parallel check), apps/backend/api/daemons/alerting-daemon/src/helpers.ts (which events a channel needs for each alert type), AlertingDaemon.ts (mute and silencing windows stop the notification, not the alert), V3IncidentManager.ts (automation ignores a muted check), apps/backend/api/src/common/services/alert-notification-service/plan-filter.ts (channel types on Hobby), and the three event labels in the alert channel editor.
  • Production: prod-commit.sh reports backend 1addd5cd3b (deployed 2026-11-27 16:54 UTC), the commit the tests ran on.
  • gh pr checks 882, gh pr view 882, gh pr list for overlap, pr_impact.py.
  • Could not verify: the parallel check cases (see above); a failing-to-degraded recovery after a failure silenced by a maintenance window instead of mute; SMS on Hobby itself; group mute (only check mute was tested).
What I tested: 11 claims end to end on a local Checkly from monorepo main, 2 not runnable there
Where Kind Result
c1 communicate/alerts/overview.mdx:103 alert pass: A check failed, then passed. The failure went to the two channels with a check fails. The recovery went to the two channels with a check recovers, one of which never got the failure. A fail-only channel got no recovery.
c2 communicate/alerts/overview.mdx:99 alert pass: A check with alert after 5 failed runs failed twice and then passed: no failure alert and no recovery alert.
c3 communicate/alerts/overview.mdx:117 alert pass: A check degraded, then passed. ALERT_DEGRADED_RECOVERY went to the channel with both events. Two channels with a check recovers but without a check degrades got nothing.
c4 communicate/alerts/overview.mdx:95 alert pass: Unmuted check: fail, degraded, pass ended with ALERT_RECOVERY to all three channels with a check recovers. A check that was muted while it failed and degraded, then unmuted and passing, also got ALERT_RECOVERY on both of its channels. The same with a maintenance window instead of mute was not run.
c5 communicate/alerts/configuration.mdx:280 alert pass: A muted check failed: the alert was generated, no notification was sent. Unmuted and passing, its channel got ALERT_RECOVERY and never an ALERT_FAILURE.
c6 communicate/alerts/configuration.mdx:280 alert pass: A check failed (notification sent), was muted and passed: the recovery alert was generated with no notification. After unmuting it kept passing and nothing more was sent.
c7 communicate/maintenance-windows/overview.mdx:81 alert pass: A window that silences alerts for one tag was open while the tagged check failed: no notification. The window was deleted, the check passed, and its channel got ALERT_RECOVERY without a failure alert. Ending the window was done by deleting it, not by waiting for its end time.
c8 communicate/maintenance-windows/overview.mdx:81 alert pass: A check failed (notification sent). A silencing window was opened and the check passed: the recovery alert was generated with no notification. After the window was removed nothing more was sent.
c9 communicate/alerts/overview.mdx:109 alert pass: A second channel was subscribed while the check was failing. It got nothing then, and ALERT_RECOVERY when the check passed.
c10 communicate/status-pages/incidents.mdx:76 alert pass: On an account with incident automation, two tagged checks failed and each rule opened an incident. Both checks passed, one of them muted. The unmuted check's incident got a Resolved update. The muted check's incident stayed at Investigating, also after the check was unmuted.
c11 communicate/alerts/overview.mdx:116 billing pass: A check with a generic webhook channel and an incident.io channel, on an account moved to the Hobby plan by hand in the database after the deploy (the CLI refuses to deploy an incident.io channel to a Hobby account). Failure and recovery both went to the generic webhook only. SMS itself was not tested.
c12 communicate/alerts/overview.mdx:96 alert not run (box-missing-feature): Needs a parallel check that fails in only some of several locations; the local stack runs one region. Source read instead: the alert decision code of the results daemon on monorepo main skips this alert for a parallel check below its location threshold.
c13 communicate/alerts/overview.mdx:110 alert not run (box-missing-feature): Same limit as above. By the source, the degraded alert stays the last alert, so the later pass is sent as ALERT_RECOVERY to every channel with a check recovers.
c14 communicate/alerts/overview.mdx:111 other source: Already stated on main in the same page under Notifications were sent but didn't arrive; the API answers in the tests carry a delivery status per notification.
c15 communicate/alerts/overview.mdx:103 other source: monorepo apps/webapp/src/pages/alert-channel-builder/PageAlertChannelBuilderNotificationsEvents.vue has these three labels; the page already used them on main.

Comment thread communicate/status-pages/incidents.mdx Resolved
Co-authored-by: Hannes Lenke <hannes@lenke.at>

@hlenke hlenke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge · The one new commit since my last review adds the sentence that an incident left open by a muted recovery stays open after unmuting, and a fresh test confirms it. CI is green.

Since my last review (d0a2362)

One commit, 2bb5b79, changes only communicate/status-pages/incidents.mdx L76. It adds: "That incident stays open after you unmute the check, so resolve it yourself." My last test read the incident only about 30 seconds after unmuting, so I ran it again with a longer wait. The incident of the check that recovered while muted was still at Investigating five and a half minutes after unmuting, while the check passed every minute. The control incident of an unmuted check resolved when the check passed. On monorepo main, the alerting daemon's incident manager acts only on an alert of an unmuted check. In the test, unmuting produced no new alert, so nothing resolved the incident. That matches the sentence.

Sibling pages (optional, still open from the last review)

  • constructs/status-page-v3-automation-rule.mdx L8 still says Checkly "resolves it when the check recovers", with no mention of mute. communicate/status-pages/overview.mdx L45 in this PR now says "unless the check is muted at that moment". The construct page could say the same.
  • communicate/status-pages/v2-deprecated.mdx L34 has the same sentence for the old check-to-service automation. I did not test that path.

Merge readiness

  • CI on 2bb5b79: static-docs-checks, docs-gate, preview-checks, link-rot, the spell check and the Mintlify deployment all pass. GitHub reports the PR as mergeable and clean.
  • None of main's commits since the PR's base touches a file this PR changes.
  • Overlap: #774 also edits communicate/status-pages/incidents.mdx. As before, I'd land this PR first.

Inline: 0 blockers, 0 important, 0 wording.

What I checked
  • git diff d0a2362 2bb5b79 (one commit, one line). No merge of main since the last review; the merge base is still 336f537.
  • Tested on local Checkly (monorepo 759928d1a6, CLI 10.5.0). The automation rule test ran on an account that has status page incident automation.
  • Monorepo main: apps/backend/api/daemons/alerting-daemon/src/V3IncidentManager.ts. In my own words: incidents are managed only for alerts of an entitled account and an unmuted check.
  • gh pr checks 882, gh pr view 882, gh pr list for overlap, pr_impact.py from the merge base.
  • Could not verify: whether a later failure and recovery of the unmuted check would close the old incident or open a second one. The page does not claim either.
What I tested: 1 claims end to end on a local Checkly from monorepo main, 0 not runnable there
Where Kind Result
c16 communicate/status-pages/incidents.mdx:76 alert pass: On an account with incident automation, two tagged checks failed and each rule opened an incident. Both checks passed, one of them muted: only the unmuted check's incident got a Resolved update. The muted check was then unmuted and kept passing every minute; five and a half minutes later its incident was still at Investigating, with no further update.

@carinaluise
carinaluise merged commit 62b355e into main Nov 30, 2026
7 checks passed
@carinaluise
carinaluise deleted the carina/red-1416-recovery-docs branch November 30, 2026 15:58

This branch was successfully deployed

1 active deployment
staging — 2bb5b794 Deployed Nov 30, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants