datadog-recheck-recovery
Re-check whether a firing Datadog monitor / the metric that tripped it has recovered, after attempting a remediation.
Skill by NorthIsUp
Chalk Labs
Need help deploying datadog-recheck-recovery?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/northisup-datadog-recheck-recovery
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/datadog-recheck-recovery
What's inside
- Skill name
datadog-recheck-recovery- Description
- Re-check whether a firing Datadog monitor / the metric that tripped it has recovered, after attempting a remediation. Use when an incident-response agent needs to confirm a fix worked before resolving a page, or to decide whether to escalate. Trigger phrases include "did the alert recover", "re-check the monitor", "is the metric back to normal", "confirm recovery", "check monitor state", "has it recovered", "verify the fix cleared the alert".
- License
- MIT
- Instructions
- 95 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# Datadog — re-check recovery
Confirm, from Datadog itself, whether a monitor that triggered has returned to
**OK** (and/or the underlying metric is back within threshold). This is the
read step an incident-response flow runs *after* attempting a fix and *before*
deciding to resolve the page or escalate.
## Inputs you need
- **`monitor_id`** — numeric id of the monitor that fired. It is in the alert
payload (`$ALERT_ID` / `alert_id` / the monitor URL `.../monitors/<id>`).
- Datadog site + credentials from the environment (do **not** hard-code):
- `DD_SITE` (e.g. `us3.datadoghq.com`; API base is `https://api.$DD_SITE`)
- `DD_API_KEY`, `DD_APP_KEY`
If the `datadog` MCP server is configured with the `monitors` + `metrics`
toolsets, prefer its tools (`get_monitor`, `query_timeseries`) over raw curl —
same data, no key handling. Fall back to the REST calls below when the MCP
isn't available.
## Step 1 — read the monitor's current state (authoritative)
`GET https://api.$DD_SITE/api/v1/monitor/{monitor_id}` and read
**`overall_state`**:
```bash
curl -sf -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
"https://api.$DD_SITE/api/v1/monitor/$MONITOR_ID" \
| jq '{state: .overall_state, name: .name, query: .query}'
```
| `overall_state` | Meaning |
| --------------- | ------- |
| `OK` | Recovered — the fix worked. Safe to resolve/dismiss the page. |
| `Alert` / `Warn`| Still firing — do **not** resolve; keep working or escalate. |
| `No Data` | Inconclusive — the metric stopped reporting. Treat as **not recovered** (a service that stopped emitting is not healthy); investigate or escalate. |
**Grouped monitors:** a multi-group monitor is only truly clear when *every*
alerting group is OK. Check `state.groups` (or `overall_state_modified`) and
confirm the specific group named in the alert is `OK`, not just the rollup.
## Step 2 — corroborate with the metric (guards against latch)
`overall_state` can lag or latch (e.g. absent-when-healthy series). Confirm the
actual signal recovered by querying the monitor's own query over the last few
minutes:
```bash
FROM=$(($(date +%s) - 300)); TO=$(date +%s)
curl -sf -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
"https://api.$DD_SITE/api/v1/query?from=$FROM&to=$TO&query=<monitor metric query>" \
| jq '.series[].pointlist[-3:]'
```
Take the monitor's `query`, strip the `<aggregation>(<window>):` prefix and the
`> <threshold>` comparator to get the bare metric query, and confirm the recent
points are back on the healthy side of the threshold.
## Step 3 — poll, don't assume
Recovery is rarely instant after a fix (pods reschedule, metrics roll up).
Re-check on a short cadence with a ceiling — e.g. every **30s up to ~5 min**:
- **Recovered** (state `OK` *and* metric healthy for 2 consecutive checks) →
hand off to **`datadog-resolve-page`** to explicitly dismiss the page.
- **Still firing at the deadline** → hand off to **`datadog-escalate-page`**;
do not silently give up.
## Step 4 — render the recovered graph (optional, on recovery)
When the verdict is `recovered`, render the tripping metric as an image spanning
the incident so the page thread shows the spike **and** the return to normal in
one graph. Same bare metric query as Step 2; window from just before the trigger
to now:
```bash
START=$(($(date +%s) - 1800)); END=$(date +%s) # trigger-ish → now (~30m)
curl -sf -G -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
"https://api.$DD_SITE/api/v1/graph/snapshot" \
--data-urlencode "metric_query=<bare metric query>" \
--data-urlencode "start=$START" --data-urlencode "end=$END" \
| jq -r '.snapshot_url'
```
The returned `snapshot_url` is a PNG that takes a few seconds to become
available. It's a **bonus** — never block or fail recovery on it; if the call
errors, just report the numeric points from Step 2 instead.
## Output
Report: monitor id + name, final `overall_state`, the last few metric points,
the recovery verdict (`recovered` | `still-firing` | `no-data`), the
`snapshot_url` of the recovered graph (when rendered), and the next action taken.From NorthIsUp/errandd, MIT.
More from NorthIsUp/errandd
- 0.497score
datadog-escalate-page
NorthIsUp
Explicitly escalate a Datadog On-Call page (or proactively page on-call) when an automated first-responder cannot safely resolve an alert.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
datadog-resolve-page
NorthIsUp
Explicitly dismiss/resolve a Datadog On-Call page after confirming the underlying monitor has recovered.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 10, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/NorthIsUp/errandd
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from NorthIsUp
- 0.497score
datadog-escalate-page
NorthIsUp
Explicitly escalate a Datadog On-Call page (or proactively page on-call) when an automated first-responder cannot safely resolve an alert.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
datadog-resolve-page
NorthIsUp
Explicitly dismiss/resolve a Datadog On-Call page after confirming the underlying monitor has recovered.
SkillCFreshness: C★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get datadog-recheck-recovery running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
datadog-recheck-recovery skill. Agent Mart. https://agentmart.dev/skills/northisup-datadog-recheck-recovery (last updated 2026-10-24)