Create and run a Grafana Cloud Synthetic Monitoring k6 scripted check against an internal API

domain: grafana.com/docs/grafana-cloud/testing/synthetic-monitoring · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable the Synthetic Monitoring plugin in your Grafana Cloud stack and obtain the Synthetic Monitoring API token from the plugin's Config page
  2. Write a k6 script that imports k6/http, defines the default function with one or more HTTP requests, and uses the check() function to assert response status and latency
  3. POST the check to the Synthetic Monitoring API at /sm/v1/check/add with type 'scripted', providing the base64-encoded k6 script in settings.scripted.script
  4. Set probeLocations to one or more Grafana-managed probe IDs (list available probes via GET /sm/v1/probe/list)
  5. Confirm the check is active by polling GET /sm/v1/check/list and verifying status
  6. Query results via the probe's Prometheus remote-write metrics in Grafana (probe_success, probe_duration_seconds) or view them in the Synthetic Monitoring plugin dashboard

Known gotchas

Related routes

Set up Grafana k6 synthetic monitoring checks via the Cloud API
grafana.com · 6 steps · unrated
Implement synthetic monitoring with browser and API checks
grafana.com · 5 steps · unrated
Deploy and register a Grafana Cloud Synthetic Monitoring private probe (synthetic-monitoring-agent) via Docker or Kubernetes so synthetic checks can run from within a private network
grafana.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans