grafana/gcx/synth-manage-checks
Claude Code and agent skill by grafana/gcx
- community
Checking that the SKILL.md file is still in the repository.
Creates, updates, pulls, pushes, and deletes Synthetic Monitoring checks from YAML via gcx. Use also when the user gives a URL or hostname to monitor. For check health use synth-check-status. For a failing check use synth-investigate-check.
Install
npx vskill@latest install grafana/gcx/synth-manage-checksSKILL.md
The same SKILL.md was published earlier as grafana/gcx/synth-manage-checks.
Synthetic Monitoring Check Manager
Manage Synthetic Monitoring checks using gcx.
Core Principles
- Use gcx commands; never call Grafana APIs directly (no curl, no HTTP calls)
- Trust the user's expertise — no explanations of what SM or gcx is
- Use
-o jsonfor agent processing; default table format for user display - gcx validates specs client-side before calling the API (probe names, check type, target format);
--dry-runonchecks create/checks updateadditionally validates against the SM API without writing anything - Probe names are case-sensitive — always copy-paste from
gcx synthetic-monitoring probes list
Workflow 1: Create New Check
Step 1: Determine Check Type
Pick the type from the target format (full decision tree and per-type templates: check-types.md):
| Target | Check Type | |
|---|---|---|
URL (https://..., http://...) | HTTP | |
| Hostname or IP (no port) | Ping | |
| Domain name (DNS lookup) | DNS | |
host:port | TCP | |
| URL with routing path analysis | Traceroute |
If unsure, ask the user what they want to test (availability, DNS, port connectivity, routing).
Step 2: List and Select Probes
Recommend at least 3 geographically distributed probes. Copy names exactly as shown — case-sensitive. Suggest probes across different continents or regions to provide meaningful coverage (e.g., one each from North America, Europe, Asia-Pacific).
Step 3: Build YAML Definition
Use the template from check-types.md for the chosen type, filling the type-specific settings block. Common fields:
Configuration guidance:
- frequency: critical checks 10,000–60,000ms; standard checks 60,000–300,000ms
- timeout: must be strictly less than
frequency; typically 5,000–30,000ms - alertSensitivity: default to
none— see "Alert Sensitivity" in
references/check-types.md for why non-none values can 403 on some stacks.
- basicMetricsOnly:
truereduces metric cardinality (fewer label dimensions);falseemits full metrics - folderUid: optional Grafana folder UID, not its title; does not create a folder.
On create, omission or "" leaves no explicit assignment (the SM app uses the default folder). On update, omission preserves the existing assignment; folderUid: "" clears it. This also applies to gcx resources push: removing the line from a pulled manifest does not clear the assignment. Cross-stack pushes preserve the UID literally; gcx does not remap it by folder title. Verify that it identifies the intended folder in the destination stack and change it before pushing if necessary.
Step 4: Create the Check
For HTTP checks, --validate-targets pre-flights the target with a HEAD request (warning only). If client-side validation fails, fix the field named in the error and re-run.
After creation, verify with:
Workflow 2: Update Existing Check
Step 1: Pull Current Definition
Fetch the specific check:
Step 2: Edit and Update
Edit the YAML file, keeping metadata.name unchanged (it is the <job>-<id> composite that targets the right check). Modify only the fields that need changing.
To run a check once without saving or scheduling it, pass either a saved check or a manifest. Ad-hoc runs are billed like scheduled executions, so confirm before running them repeatedly:
Workflow 3: GitOps Sync (Pull/Push)
When users say "pull" they mean export with checks get -o yaml; "push" means apply with checks create/checks update -f. Export to files, edit in source control, then update to apply:
For bulk updates, update files individually to control which checks are changed.
Workflow 4: Delete Checks
Confirm the check identity (job name and target) before deleting — use gcx synthetic-monitoring checks get <ID> to review.
Output Format
After creating or updating:
After export:
After delete:
Error Handling
- "probe not found": Probe names are case-sensitive. Run
gcx synthetic-monitoring probes listand copy names exactly. - "timeout must be less than frequency": Reduce
timeoutvalue or increasefrequency. - "invalid frequency": The allowed
frequencyrange depends on check type (e.g. traceroute allows longer intervals); the API error states the valid range. - "check validation failed": gcx validates the spec client-side before calling the API. Fix the YAML field indicated in the error and re-run.
- `--dry-run` fails with "not found: nothing to update": The check ID does not exist. Run
gcx synthetic-monitoring checks listand use an ID from the output. - `--dry-run` fails with "does not support check validation": The SM API predates
check/validate(requires synthetic-monitoring-api v0.98.0 or later). Runcreate/updatewithout--dry-run; the API validates on write. - Create fails with "check already exists": The check job+target combination may already exist. Use
gcx synthetic-monitoring checks listto find it and update instead of create. - No probes available: Run
gcx synthetic-monitoring probes list; if empty, verify gcx context and SM API access. - Complex check types (MultiHTTP, Browser, Scripted): Settings map is not fully documented. Pull an existing check of that type as a template:
gcx synthetic-monitoring checks get <ID> -o yaml.
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-manage-checks/SKILL.md
Popularity
- Repository stars
- 531
- Repository forks
- 42
- 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-manage-checks)