grafana/gcx/synth-investigate-check
Claude Code and agent skill by grafana/gcx
- community
Checking that the SKILL.md file is still in the repository.
Diagnoses why a Synthetic Monitoring check fails: probe failures, failure scope, per-probe breakdown, root cause. Use for "why is my check failing" or "check is down". For status use synth-check-status. To create or change checks use synth-manage-checks.
Install
npx vskill@latest install grafana/gcx/synth-investigate-checkSKILL.md
The same SKILL.md was published earlier as grafana/gcx/synth-investigate-check.
Synthetic Check Investigator
Investigate Synthetic Monitoring check failures by triaging probe data, classifying failure scope, and identifying root cause.
Core Principles
- Use gcx commands — do not call Grafana APIs directly
- Trust the user's expertise — skip background explanations
- Use
-o jsonfor agent processing, default format for user display - Show timeline graphs for time-series data — they communicate trends faster than text
- Collect errors; report them at the end, not interleaved in workflow steps
Investigation Workflow
Step 1: Get Check Status (with early exit)
If the user provided a name instead of ID, list first with a job glob (the numeric ID is the NAME suffix, e.g. web-check-1001 is ID 1001):
Early exit — OK: Status command reports OK (success rate at or above the check's alertSensitivity threshold: high = 95%, medium/default = 90%, low = 75%). Report: "Check <job> is healthy. Success rate: <rate>%. <probe_count> probes up." Stop unless the user asks for more.
Early exit — NODATA: No Prometheus metrics available.
- Get check config to verify
enabled: true(gcx synthetic-monitoring checks get <ID> -o json | jq .spec.enabled) - If disabled: report "Check is disabled — no metrics will appear until it is re-enabled."
- If enabled: report "No metrics found. Check datasource config or whether the SM stack is healthy."
Stop after reporting.
Step 2: Get Check Configuration
Extract: job name, target, check type (http/ping/dns/tcp/traceroute), probe list, frequency, timeout, alertSensitivity, enabled flag.
For HTTP checks also note: any assertion settings, TLS config, expected status codes.
Step 3: Timeline Triage
Show the graph output to the user. Then analyze the pattern:
| Pattern | Classification | |
|---|---|---|
| All probes at 0 (or near 0) | Target down | |
| Subset of probes at 0, others healthy | Regional / network | |
| Intermittent drops across multiple probes | Flapping / timeout | |
| All probes drop at a specific point in time | Sudden onset — possible deployment or config change | |
| Gradual decline | Degradation — timeout drift or resource exhaustion |
Use a longer window if the failure started more than 1h ago:
Step 4: Classify Failure Scope and Map Probes
Get the probe list for geographic mapping:
Cross-reference the probe names from the check config against each probe's region field. Map failing probes to their regions.
All probes failing: Target/service issue — likely target down, SSL error, or DNS failure.
Subset of probes failing: Regional or network issue. Note which regions are affected:
- Single region → ISP/CDN routing issue or regional outage
- Multiple contiguous regions → CDN edge or routing policy issue
- Probe-specific → private probe infra issue (if using private probes)
Intermittent failures: Flapping. Consider: rate limiting, timeout too tight, flaky connectivity.
Step 5: Per-Probe Breakdown via PromQL (when datasource is available)
Resolve datasource UID if not already known:
If the filtered list comes back empty, the stack may leave the type field blank in list payloads (known issue) — rerun without --type and pick the Prometheus datasource by name.
Run per-probe success rate to pinpoint failing probes (use -o json for parsing, -o graph to show the user):
For HTTP checks, also run HTTP phase latency to locate where time is spent:
For SSL/TLS cert expiry, DNS latency, per-probe error rates, and other patterns, see sm-promql-patterns.md.
Step 6: Classify Failure Mode
Cross-reference signals against failure-modes.md (full signal/cause/next-action table and decision tree) to select the most likely failure mode:
- All probes failing + HTTP non-2xx or connection refused → Target down
- Subset of probes failing → Regional/CDN
- TLS handshake error or cert expiry < 14 days → SSL/TLS
- DNS resolution errors across probes → DNS resolution
- All probes timing out, phase latency high in
connectortls→ Timeout - Probes reaching target but assertion fails (status code, body match) → Content/assertion
- Single private probe failing, public probes healthy → Private probe infra
- HTTP 429 responses, intermittent failures with backoff pattern → Rate limiting
Step 7: Diagnosis and Next Actions
Synthesize findings into an actionable report (see Output Format below). Take next actions from the "Next Action" column of the failure mode's row in failure-modes.md.
If deeper investigation is needed (e.g., logs, infra repos), ask the user if they want to proceed.
If check config needs changes (probe selection, frequency, assertions), route to synth-manage-checks.
Output Format
Early exit (OK):
Early exit (NODATA):
Full investigation:
Use minimal formatting. Avoid excessive bold text. Trust the user to prioritize.
Error Handling
gcx synthetic-monitoring checks statusreturns no rows: check ID may be wrong — list all checks and confirmgcx synthetic-monitoring probes listfails: skip geographic mapping; classify probes by name where possiblegcx metrics queryfails with datasource error: note it, skip PromQL steps, classify using timeline data only- Multiple checks match the search name: list all with IDs and targets, ask which to investigate
- Timeline returns no data for the window: widen to
--from now-6h --to nowbefore concluding NODATA
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude-plugin/skills/synth-investigate-check/SKILL.md
Popularity
- Repository stars
- 800
- Repository forks
- 65
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/grafana/gcx/synth-investigate-check)