[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76YCD89RS6924XHWVERJAWZ":3,"skill-same:01M76YCD89RS6924XHWVERJAWZ":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M76YCD89RS6924XHWVERJAWZ","synthetic-monitoring-checks",null,"Author Grafana Cloud Synthetic Monitoring checks, with deep coverage of k6 scripted and browser checks: SM's single-VU\u002Fsingle-iteration execution model, assertions that actually fail probe_success (expect() and fail() vs bare check()), secrets, deterministic scripts, robust browser locators, local validation with k6 run, deployment via UI\u002FAPI\u002FTerraform, verifying probe_success, and rollback. Also helps choose the simplest sufficient check type (HTTP\u002Fping\u002FDNS\u002FTCP, MultiHTTP, scripted, browser). Use when writing a synthetic check, monitoring a login\u002Fcheckout\u002Fsignup flow in production, converting a k6 script or an OpenAPI spec into a check, authoring a browser check, validating a user journey, or asking \"is my site up from multiple regions\". NOT for load, stress, or performance testing — SM runs one iteration per execution; for load tests use the grafana-k6 plugin or Grafana Cloud k6. For the broad Grafana Cloud Testing overview (SM + k6 Cloud + Faro), use the testing skill.","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fsynthetic-monitoring-checks\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: synthetic-monitoring-checks\nlicense: Apache-2.0\ndescription: >\n  Author Grafana Cloud Synthetic Monitoring checks, with deep coverage of k6 scripted and\n  browser checks: SM's single-VU\u002Fsingle-iteration execution model, assertions that actually\n  fail probe_success (expect() and fail() vs bare check()), secrets, deterministic scripts,\n  robust browser locators, local validation with k6 run, deployment via UI\u002FAPI\u002FTerraform,\n  verifying probe_success, and rollback. Also helps choose the simplest sufficient check\n  type (HTTP\u002Fping\u002FDNS\u002FTCP, MultiHTTP, scripted, browser). Use when writing a synthetic\n  check, monitoring a login\u002Fcheckout\u002Fsignup flow in production, converting a k6 script or\n  an OpenAPI spec into a check, authoring a browser check, validating a user journey, or\n  asking \"is my site up from multiple regions\". NOT for load, stress, or performance testing — SM runs one\n  iteration per execution; for load tests use the grafana-k6 plugin or Grafana Cloud k6.\n  For the broad Grafana Cloud Testing overview (SM + k6 Cloud + Faro), use the testing skill.\n---\n\n# Synthetic Monitoring Check Authoring\n\n> **Docs**: https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002F\n> Broad Grafana Cloud Testing entry point (SM + k6 Cloud + Faro): [`testing`](..\u002Ftesting\u002FSKILL.md) skill.\n\n## Reliability monitoring, not load testing\n\nSynthetic Monitoring (SM) runs k6 as a **reliability\u002Favailability engine**: every check\nexecution runs **one iteration with one VU** from each selected probe location on a fixed\nschedule. Success means \"the user journey works right now, from this region\" — detect\noutages before your customers do.\n\nDo **not** apply load-testing idioms. There are no VUs to ramp, no `stages`, no load\nprofiles, no soak\u002Fstress\u002Fspike phases, and no `thresholds` over aggregated traffic.\nVocabulary: *check*, *probe*, *execution*, *uptime*, *reachability*, *user journey\nvalidation* — never \"load test\", \"ramping\", or \"VUs\".\n\n**If the user actually wants load or performance testing** (throughput, latency under\nload, breakpoints), stop: that is Grafana Cloud k6 \u002F the `grafana-k6` plugin's `k6` skill,\nnot Synthetic Monitoring. A script can be shared between both products, but the goals,\noptions, and pricing are different.\n\n## Execution model and constraints (verify against these before writing)\n\n| Constraint | Value |\n|---|---|\n| Workload | One iteration per probe execution. Scripted and MultiHTTP run with forced `--vus 1 --iterations 1`; browser checks rely on the script's required single scenario. Either way `vus`, `duration`, `stages`, `iterations` are **ignored** — never write a load shape |\n| `thresholds` | **Not supported** |\n| Frequency | k6-class checks (scripted, MultiHTTP, browser): 60–3600s. Protocol checks (HTTP\u002Fping\u002FDNS\u002FTCP\u002FgRPC): 1–3600s. Traceroute: 120–3600s |\n| Timeout | Must be ≤ frequency. k6-class checks: 1–180s. Protocol checks: 1–60s. Traceroute: fixed 30s |\n| k6 version | Checks run on a [k6 version channel](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fmanage-k6-versions\u002F) (new checks default to the latest stable channel; `v1.x` is deprecated as of July 2026). Pin per check via the UI dropdown or `channels` in API\u002FTerraform |\n| Local files | `open()`, `fs`, `grpc.load()` unsupported. Bundle local modules into the script; remote `https:\u002F\u002Fjslib.k6.io\u002F...` imports work |\n| HTTP request errors | SM runs k6 with `--throw`: network-level request failures throw an exception and fail the execution |\n| Script options SM honors | SM sets its own CLI flags, which take precedence over the script's `options` object; the options that still take effect include `batch`, `batch-per-host`, `discardResponseBodies`, `httpDebug`, `insecureSkipTLSVerify`, `maxRedirects`, `noConnectionReuse`, `setupTimeout`, `systemTags`, `tags`, `teardownTimeout`, `throw`, `tlsAuth`, `tlsCipherSuites`, `tlsVersion`, `userAgent` |\n| Browser memory | [1GB RAM per browser on public probes](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fchecks\u002Fk6-browser\u002F#public-probe-memory) — huge pages fail with `Target has crashed` |\n| Browser script format | The UI rejects bundled\u002Fminified browser scripts (import validation) — deploy those via API or Terraform |\n\n## How an execution fails (this is what agents get wrong)\n\n`probe_success` (1\u002F0) is the uptime signal. An execution is marked **failed** when the\nscript throws an uncaught exception, calls `fail()`, a k6-testing `expect()` assertion\nfails (it calls k6's `test.abort()` under the hood), an HTTP request errors at the\nnetwork level (SM's `--throw`), or the timeout is hit.\n\nA **bare failed `check()` does NOT fail the execution** — it only records the\n`probe_checks_total` \u002F `probe_check_success_rate` metrics. Checks don't affect k6's exit\nstatus without thresholds, and thresholds are disabled in SM.\n\nAssertion patterns, in order of preference:\n\n```javascript\nimport { expect } from 'https:\u002F\u002Fjslib.k6.io\u002Fk6-testing\u002F0.6.1\u002Findex.js';\nimport { check, fail } from 'k6';\n\n\u002F\u002F 1. PREFERRED — assertions module. Throws on failure => execution fails,\n\u002F\u002F    with a descriptive error in the check logs.\nexpect(res.status, 'login should succeed').toEqual(200);\nexpect(res.json('token')).toBeDefined();\n\n\u002F\u002F 2. Soft assertions — run all of them, still fail the execution at the end.\nexpect.soft(res.headers['Content-Type']).toContain('application\u002Fjson');\n\n\u002F\u002F 3. check() when you also want per-assertion metrics — but pair it with\n\u002F\u002F    fail() or the failure won't affect probe_success\u002Fuptime:\ncheck(res, { 'status 200': (r) => r.status === 200 }) ||\n  fail(`login failed with status ${res.status}`);\n```\n\nName every assertion (the message argument \u002F check name): the name is what you see in\ncheck logs and in the `check` label of `probe_checks_total` when diagnosing a failure\nat 3am.\n\n## Choose the simplest sufficient check type first\n\nCheaper for the customer, easier to maintain. Work down this list and stop at the first\nmatch:\n\n1. **HTTP \u002F ping \u002F DNS \u002F TCP \u002F traceroute \u002F gRPC** — a single static endpoint (uptime,\n   status code, body regex, TLS cert expiry, record resolution, port reachability). No\n   script to maintain — these run on the blackbox-exporter probe engine, and Terraform\n   examples with per-type `target` formats are in\n   [`references\u002Fapi-and-terraform.md`](references\u002Fapi-and-terraform.md).\n2. **MultiHTTP** — a sequence of HTTP requests with value-passing between them\n   (`${variable}` capture), but no custom logic. **Caution**: MultiHTTP does not\n   auto-validate status codes — define assertions per request or failures won't affect\n   uptime.\n3. **k6 scripted** — an API flow needing real logic: crypto\u002Fsigning, conditional\n   branching, generated test data, WebSockets, response-driven chaining.\n4. **k6 browser** — only when you need a real browser: JS-rendered user journeys,\n   forms\u002Fclicks, Core Web Vitals.\n\n**Cost model** (execution-based billing): an execution is one check run on one probe,\nmetered per minute of runtime rounded up. Per month:\n`probes × duration_minutes × (43200 \u002F frequency_minutes)`. API test executions (HTTP,\nping, DNS, TCP, traceroute, MultiHTTP, scripted) and browser test executions are billed\nseparately — browser checks are the expensive tier. A browser check on 3 probes every\nminute is ~129,600 browser executions\u002Fmonth; the same check every 5 minutes is ~25,920.\nPick the longest frequency that still meets your detection-time goal, and 2–3 probes\nnear your users (multiple probes reduce alert flapping; more isn't better).\n\n## Scripted check authoring\n\nStart every script you generate (scripted and browser alike) with a line-1 attribution\ncomment, as shown in the skeletons below. It tells whoever reads the check later how it\nwas authored (and where to find the skill), and the fixed prefix makes skill-authored\nchecks queryable. Keep `Generated by synthetic-monitoring-checks` verbatim — vary only\nthe timestamp (`date -u +%Y-%m-%dT%H:%M:%SZ`).\n\nSkeleton — a login + API action journey with secrets and hard-failing assertions:\n\n```javascript\n\u002F\u002F Generated by synthetic-monitoring-checks (https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fskills) on 2026-07-31T12:00:00Z\nimport http from 'k6\u002Fhttp';\nimport { expect } from 'https:\u002F\u002Fjslib.k6.io\u002Fk6-testing\u002F0.6.1\u002Findex.js';\nimport secrets from 'k6\u002Fsecrets';\n\nconst BASE = 'https:\u002F\u002Fapi.example.com';\n\nexport default async function () {\n  \u002F\u002F Secrets are managed in Synthetics > Config > Secrets — never hardcode credentials.\n  const password = await secrets.get('checkout-monitor-password');\n\n  \u002F\u002F Step 1: authenticate with a dedicated monitoring account\n  const login = http.post(\n    `${BASE}\u002Fauth\u002Flogin`,\n    JSON.stringify({ user: 'sm-checkout-monitor', password }),\n    { headers: { 'Content-Type': 'application\u002Fjson' } }\n  );\n  expect(login.status, 'login should return 200').toEqual(200);\n  const token = login.json('token');\n  expect(token, 'auth token should be present').toBeDefined();\n\n  \u002F\u002F Step 2: exercise the journey and assert the OUTCOME, not just the status\n  const order = http.post(`${BASE}\u002Forders`, JSON.stringify({ sku: 'TEST-SKU-1', qty: 1 }), {\n    headers: { 'Content-Type': 'application\u002Fjson', Authorization: `Bearer ${token}` },\n  });\n  expect(order.status, 'order should be created').toEqual(201);\n  const orderId = order.json('id');\n  expect(orderId, 'order id should be returned').toBeDefined();\n\n  \u002F\u002F Step 3: clean up so the check is idempotent against production\n  \u002F\u002F http.url groups metrics for URLs containing unique IDs — without it, every\n  \u002F\u002F execution creates new time series (cardinality + active-series cost).\n  const del = http.del(http.url`${BASE}\u002Forders\u002F${orderId}`, null, {\n    headers: { Authorization: `Bearer ${token}` },\n  });\n  expect(del.status, 'test order should be cleaned up').toEqual(204);\n}\n```\n\nRules that make a scripted check a good *monitor* (vs a good test):\n\n- **Deterministic**: fixed test data (or generated-then-deleted, as above), no\n  time-of-day or ordering dependence. Every execution must be able to pass at any hour\n  from any probe.\n- **Idempotent against production**: create-then-delete, or use read-only endpoints.\n  The check runs forever — leaked state accumulates forever.\n- **Dedicated test account**: never a real user's credentials; scope it minimally, store\n  the password as an SM secret, and exclude the account from analytics\u002Fbilling.\n- **Assert every step** — an unasserted step that breaks shows up as a *later* step's\n  confusing failure.\n- **Stable URL cardinality**: `http.url` template literal for any URL containing an ID.\n- Keep runtime well under the timeout, and the timeout under the frequency.\n\n### Generating a check from an OpenAPI spec (or similar)\n\nGiven an API description — an OpenAPI\u002FSwagger spec, GraphQL schema, or Postman\ncollection — the mechanical conversion to k6 calls is easy. What matters is what you\nchoose to convert:\n\n1. **Journeys, not endpoints.** Do NOT generate one check per path, or one check that\n   sweeps every path — that monitors the spec, not the service, and every extra check\n   multiplies execution cost. Identify the 1–3 flows whose failure means \"customers are\n   impacted\" (auth → core action → result) and write one scripted check per flow.\n2. **Filter for safety.** Only include mutating operations (`POST`\u002F`PUT`\u002F`DELETE`) when\n   the flow cleans up after itself (create-then-delete, as above) or targets dedicated\n   test resources. A spec lists destructive operations right next to health endpoints —\n   never exercise them against production just because they're documented.\n3. **Assert from the response schema.** The spec tells you exactly what a healthy\n   response contains — assert required fields, not just the status code:\n   `expect(order.json('id'), 'id required by OrdersResponse schema').toBeDefined()`.\n4. **Verify the target URL.** `servers:` blocks (and Postman environments) often list\n   localhost or staging first — confirm the production base URL with the user, and map\n   `securitySchemes` credentials to SM secrets, never to values inlined from the spec.\n   (Secrets in plain HTTP\u002Fprotocol checks are a recent, feature-flagged rollout — check\n   current docs; the scripted `secrets.get()` path always works.)\n5. **Treat `format: int64` ids as strings.** `res.json('id')` parses into a JS number\n   and silently corrupts values past 2^53 (snowflake-style ids), so the readback URL\n   404s on every execution while the create looks fine. Extract from the raw body\n   instead: `const id = (\u002F\"id\":\\s*(\\d+)\u002F.exec(res.body) || [])[1];` — and never do\n   arithmetic on it.\n\nNo API spec at all? Probe the frontend: open the web app with browser devtools (or\n`curl` likely routes) and capture the `\u002Fapi\u002F*` XHR calls it makes — that's a monitorable\nHTTP surface even when the documented backend services are gRPC-only or internal.\n\n## Browser check authoring\n\nRequired scaffold: import `k6\u002Fbrowser` and declare the `chromium` browser type. The UI\nvalidates both.\n\n```javascript\n\u002F\u002F Generated by synthetic-monitoring-checks (https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fskills) on 2026-07-31T12:00:00Z\nimport { browser } from 'k6\u002Fbrowser';\nimport { expect } from 'https:\u002F\u002Fjslib.k6.io\u002Fk6-testing\u002F0.6.1\u002Findex.js';\nimport secrets from 'k6\u002Fsecrets';\n\nexport const options = {\n  scenarios: {\n    ui: {\n      executor: 'shared-iterations',\n      options: { browser: { type: 'chromium' } },\n    },\n  },\n};\n\nexport default async function () {\n  const page = await browser.newPage();\n  try {\n    await page.goto('https:\u002F\u002Fshop.example.com\u002Flogin');\n\n    \u002F\u002F Prefer role\u002Flabel\u002Ftest-id locators over CSS chains — they survive redesigns.\n    const password = await secrets.get('shop-monitor-password');\n    await page.getByLabel('Email').fill('sm-monitor@example.com');\n    await page.getByLabel('Password').fill(password);\n    await page.getByRole('button', { name: 'Sign in' }).click();\n\n    \u002F\u002F Assert the JOURNEY OUTCOME with auto-retrying assertions — never sleep().\n    await expect(page.getByRole('heading', { name: 'Your account' })).toBeVisible();\n\n    await page.getByRole('link', { name: 'Orders' }).click();\n    await expect(page.getByTestId('order-list')).toBeVisible();\n  } finally {\n    await page.close();\n  }\n}\n```\n\nBrowser-specific rules:\n\n- **Locators**: `getByRole` \u002F `getByLabel` \u002F `getByTestId` (ask the app team to add\n  `data-testid` where needed) > text > CSS. Never XPath or generated class names.\n  `getByTestId` assumes `data-testid` — apps instrumented for Cypress often use\n  `data-cy` instead; fall back to `page.locator('[data-cy=\"...\"]')`.\n- **No manual waits before interactions**: locator actions auto-wait for visibility and\n  enabled state. Don't call `waitFor()` before `click()`\u002F`fill()`, don't use\n  `waitForLoadState()`, never `sleep()`.\n- **Auto-retrying `expect()`** (`toBeVisible`, `toBeEnabled`, ...) is the wait mechanism\n  for asserting state you don't interact with. Caveat: despite being listed as\n  retrying, the text matchers (`toHaveText`\u002F`toContainText`) hard-fail on the first\n  *mismatched* read — e.g. an empty string mid-hydration on a client-rendered app.\n  Assert dynamic text by locating it and asserting visibility instead:\n  `await expect(page.getByText('Order confirmed')).toBeVisible()`.\n- **Assertion timeout defaults to 5s** — client-side-rendered apps routinely take\n  longer to first meaningful render. Raise it once and use the configured instance:\n  `const expectUi = expect.configure({ timeout: 20000 });`.\n- **Assert the outcome** (logged-in heading, order list, confirmation text) — a page can\n  load fine while the journey is broken.\n- **`try\u002Ffinally` with `page.close()`** so the browser is released even when an\n  assertion throws.\n- Screenshot artifacts aren't a documented SM feature — don't build failure handling\n  around `page.screenshot()`; rely on assertion messages and the check's logs (SM stores\n  per-execution logs in Loki).\n- Web Vitals (`probe_browser_web_vital_lcp|cls|fcp|inp|ttfb`) are collected\n  automatically — no extra code needed.\n\n## Validate locally, then deploy\n\nSM scripts are plain k6 scripts — always run them locally first:\n\n```bash\nk6 run script.js                                              # scripted check\nK6_BROWSER_HEADLESS=true k6 run browser-check.js              # browser check\nk6 run --secret-source=mock=checkout-monitor-password=example-password script.js   # with secrets\n# Many\u002Flarge secrets: k6 run --secret-source=file=secrets.txt script.js\n```\n\nPass = exit code 0, one iteration, no failed assertions in the summary. Run it 3–5 times;\na script that is 90% reliable locally will page you nightly from 3 probes.\n\nThen create the check (pick one):\n\n- **UI**: Testing & synthetics → Synthetics → Add new check → *k6 scripted* \u002F *k6\n  browser* → paste script → select probes + frequency → **Test** (runs once without\n  saving) → Save.\n- **[gcx](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fgcx)**: `gcx synthetic-monitoring checks test -f\n  check.yaml` is the CLI equivalent of the UI's Test button — runs once against real\n  probes without saving. Then `gcx synthetic-monitoring checks create -f check.yaml` to\n  save. Both accept the script as plain text; gcx base64-encodes it for you. Pull an\n  existing check back out as a starting template with `gcx synthetic-monitoring checks\n  get \u003CID> -o yaml --decode-script` (omit the flag and you get raw base64).\n- **API or Terraform**: see [`references\u002Fapi-and-terraform.md`](references\u002Fapi-and-terraform.md).\n  Key gotchas: API `frequency`\u002F`timeout` are **milliseconds** and `settings.scripted.script`\n  \u002F `settings.browser.script` are **base64-encoded**; Terraform takes the plain script\n  via `file()`.\n\nPick by ownership, not preference: if checks are already Terraform-managed (drift\ndetection, multi-environment, PR review), create and update through Terraform —\nhand-editing state it owns causes drift on the next `apply`. Otherwise, for one-off or\nagent-driven authoring, gcx or the UI are faster. Either way, gcx is still the tool for\nlive inspection, ad-hoc testing, and status\u002Ftimeline investigation, regardless of which\ntool provisioned the check.\n\n## Verify it works, and rollback\n\nWait one frequency interval, then in Explore against the Synthetic Monitoring metrics\n(Prometheus) datasource:\n\n```promql\n# 1 from every selected probe = healthy\nprobe_success{job=\"checkout-flow\"}\n\n# Assertion pass rate per named assertion (scripted\u002Fbrowser)\nprobe_check_success_rate{job=\"checkout-flow\"}\n\n# Journey duration per probe — confirm it's comfortably under the timeout\nprobe_script_duration_seconds{job=\"checkout-flow\"}\n\n# Uptime over time (how the SM app computes it)\nmax by () (max_over_time(probe_success{job=\"checkout-flow\"}[5m]))\n```\n\nA healthy first execution: `probe_success == 1` from every probe, all\n`probe_check_success_rate` series at 1, duration stable across probes, and the check's\nprebuilt dashboard (Synthetics → check → View dashboard) showing logs for each execution.\nBrowser checks should additionally show `probe_browser_web_vital_*` series.\n\n**Rollback**: set the check's `enabled: false` (UI toggle, `gcx synthetic-monitoring\nchecks update`, API update, or Terraform) to\nstop executions without losing history; delete the check only when you no longer need\nits configuration. Alerting: start with `alertSensitivity` \u002F the default alert rules on\n`probe_success` — see the [`testing`](..\u002Ftesting\u002FSKILL.md) skill for alert rule examples.\n\n## Common failure modes\n\n| Symptom | Cause → fix |\n|---|---|\n| Passes locally, fails on all probes | Target not reachable from the public internet (internal DNS, VPN, IP allowlist). Use [private probes](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fset-up\u002Fset-up-private-probes\u002F) for internal targets, or allowlist probe egress |\n| Passes locally, fails on *some* probes | Geo-blocking, regional CDN\u002FWAF rules, or bot protection challenging datacenter IPs. Check `probe` label on failures; exempt the SM `userAgent` or those regions in the WAF |\n| Check \"fails\" in your eyes but `probe_success` stays 1 | Bare `check()` without `fail()`\u002F`expect()` — failures are recorded as metrics only. Convert to `expect()` or `check(...) \\|\\| fail(...)` |\n| Browser check flaps with locator timeouts | Brittle selectors or animation timing. Switch to `getByRole`\u002F`getByTestId`, assert with auto-retrying `expect()`, remove manual waits |\n| `toBeVisible` reports `Expected: visible \u002F Received: hidden` but the element is clearly visible | The locator matches multiple elements (strict mode) — the error message is misleading. Tighten the selector or use `.first()` |\n| Create succeeds but readback 404s on every execution | The id exceeds `Number.MAX_SAFE_INTEGER` (2^53) and `res.json()` silently rounded it — extract int64 ids from the raw body as strings (see the OpenAPI section) |\n| `secrets.get()` fails | Secret name mismatch (names are exact, ≤253 chars, letters\u002Fnumbers\u002F`-`\u002F`_`), secret deleted (checks fail until recreated), or the editing user lacks the Admin\u002FEditor role or \"Checks writer\" permission |\n| Executions time out but the journey is fine | Timeout too low for the journey (max 180s) — raise it; or the script does unbounded work per iteration. Also confirm timeout \u003C frequency |\n| `Target has crashed` in browser check logs | Page exceeds the 1GB probe browser memory — trim the journey, block heavy third-party resources, or use a private probe with more memory |\n| UI rejects a browser script | Bundled\u002Fminified script fails the UI's import validation — create it via API or Terraform instead |\n| Metrics\u002Fbilling explosion after adding a check | Unique IDs in URLs creating per-execution time series — use `http.url`, and check frequency × probe count against the cost formula above |\n\n## References\n\n- [`references\u002Fapi-and-terraform.md`](references\u002Fapi-and-terraform.md) — SM API auth + check CRUD payloads (scripted, browser, MultiHTTP) and Terraform examples for every check type, including the protocol checks (HTTP, ping, DNS, TCP, traceroute, gRPC)\n\n## Resources\n\n- [Synthetic Monitoring docs](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002F)\n- [k6 scripted checks](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fchecks\u002Fk6\u002F) · [k6 browser checks](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fchecks\u002Fk6-browser\u002F)\n- [Secrets management](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fmanage-secrets\u002F)\n- [k6 assertions (`expect`)](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fk6\u002Flatest\u002Fusing-k6\u002Fassertions\u002F) · [k6 browser module](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fk6\u002Flatest\u002Fusing-k6-browser\u002F)\n- k6 fundamentals and load testing: `grafana-k6` plugin, [`k6` skill](..\u002F..\u002Fgrafana-k6\u002Fk6\u002FSKILL.md)\n","# Synthetic Monitoring Check Authoring\n\n> **Docs**: https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002F\n> Broad Grafana Cloud Testing entry point (SM + k6 Cloud + Faro): [`testing`](..\u002Ftesting\u002FSKILL.md) skill.\n\n## Reliability monitoring, not load testing\n\nSynthetic Monitoring (SM) runs k6 as a **reliability\u002Favailability engine**: every check\nexecution runs **one iteration with one VU** from each selected probe location on a fixed\nschedule. Success means \"the user journey works right now, from this region\" — detect\noutages before your customers do.\n\nDo **not** apply load-testing idioms. There are no VUs to ramp, no `stages`, no load\nprofiles, no soak\u002Fstress\u002Fspike phases, and no `thresholds` over aggregated traffic.\nVocabulary: *check*, *probe*, *execution*, *uptime*, *reachability*, *user journey\nvalidation* — never \"load test\", \"ramping\", or \"VUs\".\n\n**If the user actually wants load or performance testing** (throughput, latency under\nload, breakpoints), stop: that is Grafana Cloud k6 \u002F the `grafana-k6` plugin's `k6` skill,\nnot Synthetic Monitoring. A script can be shared between both products, but the goals,\noptions, and pricing are different.\n\n## Execution model and constraints (verify against these before writing)\n\n| Constraint | Value |\n|---|---|\n| Workload | One iteration per probe execution. Scripted and MultiHTTP run with forced `--vus 1 --iterations 1`; browser checks rely on the script's required single scenario. Either way `vus`, `duration`, `stages`, `iterations` are **ignored** — never write a load shape |\n| `thresholds` | **Not supported** |\n| Frequency | k6-class checks (scripted, MultiHTTP, browser): 60–3600s. Protocol checks (HTTP\u002Fping\u002FDNS\u002FTCP\u002FgRPC): 1–3600s. Traceroute: 120–3600s |\n| Timeout | Must be ≤ frequency. k6-class checks: 1–180s. Protocol checks: 1–60s. Traceroute: fixed 30s |\n| k6 version | Checks run on a [k6 version channel](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fmanage-k6-versions\u002F) (new checks default to the latest stable channel; `v1.x` is deprecated as of July 2026). Pin per check via the UI dropdown or `channels` in API\u002FTerraform |\n| Local files | `open()`, `fs`, `grpc.load()` unsupported. Bundle local modules into the script; remote `https:\u002F\u002Fjslib.k6.io\u002F...` imports work |\n| HTTP request errors | SM runs k6 with `--throw`: network-level request failures throw an exception and fail the execution |\n| Script options SM honors | SM sets its own CLI flags, which take precedence over the script's `options` object; the options that still take effect include `batch`, `batch-per-host`, `discardResponseBodies`, `httpDebug`, `insecureSkipTLSVerify`, `maxRedirects`, `noConnectionReuse`, `setupTimeout`, `systemTags`, `tags`, `teardownTimeout`, `throw`, `tlsAuth`, `tlsCipherSuites`, `tlsVersion`, `userAgent` |\n| Browser memory | [1GB RAM per browser on public probes](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fchecks\u002Fk6-browser\u002F#public-probe-memory) — huge pages fail with `Target has crashed` |\n| Browser script format | The UI rejects bundled\u002Fminified browser scripts (import validation) — deploy those via API or Terraform |\n\n## How an execution fails (this is what agents get wrong)\n\n`probe_success` (1\u002F0) is the uptime signal. An execution is marked **failed** when the\nscript throws an uncaught exception, calls `fail()`, a k6-testing `expect()` assertion\nfails (it calls k6's `test.abort()` under the hood), an HTTP request errors at the\nnetwork level (SM's `--throw`), or the timeout is hit.\n\nA **bare failed `check()` does NOT fail the execution** — it only records the\n`probe_checks_total` \u002F `probe_check_success_rate` metrics. Checks don't affect k6's exit\nstatus without thresholds, and thresholds are disabled in SM.\n\nAssertion patterns, in order of preference:\n\n```javascript\nimport { expect } from 'https:\u002F\u002Fjslib.k6.io\u002Fk6-testing\u002F0.6.1\u002Findex.js';\nimport { check, fail } from 'k6';\n\n\u002F\u002F 1. PREFERRED — assertions module. Throws on failure => execution fails,\n\u002F\u002F    with a descriptive error in the check logs.\nexpect(res.status, 'login should succeed').toEqual(200);\nexpect(res.json('token')).toBeDefined();\n\n\u002F\u002F 2. Soft assertions — run all of them, still fail the execution at the end.\nexpect.soft(res.headers['Content-Type']).toContain('application\u002Fjson');\n\n\u002F\u002F 3. check() when you also want per-assertion metrics — but pair it with\n\u002F\u002F    fail() or the failure won't affect probe_success\u002Fuptime:\ncheck(res, { 'status 200': (r) => r.status === 200 }) ||\n  fail(`login failed with status ${res.status}`);\n```\n\nName every assertion (the message argument \u002F check name): the name is what you see in\ncheck logs and in the `check` label of `probe_checks_total` when diagnosing a failure\nat 3am.\n\n## Choose the simplest sufficient check type first\n\nCheaper for the customer, easier to maintain. Work down this list and stop at the first\nmatch:\n\n1. **HTTP \u002F ping \u002F DNS \u002F TCP \u002F traceroute \u002F gRPC** — a single static endpoint (uptime,\n   status code, body regex, TLS cert expiry, record resolution, port reachability). No\n   script to maintain — these run on the blackbox-exporter probe engine, and Terraform\n   examples with per-type `target` formats are in\n   [`references\u002Fapi-and-terraform.md`](references\u002Fapi-and-terraform.md).\n2. **MultiHTTP** — a sequence of HTTP requests with value-passing between them\n   (`${variable}` capture), but no custom logic. **Caution**: MultiHTTP does not\n   auto-validate status codes — define assertions per request or failures won't affect\n   uptime.\n3. **k6 scripted** — an API flow needing real logic: crypto\u002Fsigning, conditional\n   branching, generated test data, WebSockets, response-driven chaining.\n4. **k6 browser** — only when you need a real browser: JS-rendered user journeys,\n   forms\u002Fclicks, Core Web Vitals.\n\n**Cost model** (execution-based billing): an execution is one check run on one probe,\nmetered per minute of runtime rounded up. Per month:\n`probes × duration_minutes × (43200 \u002F frequency_minutes)`. API test executions (HTTP,\nping, DNS, TCP, traceroute, MultiHTTP, scripted) and browser test executions are billed\nseparately — browser checks are the expensive tier. A browser check on 3 probes every\nminute is ~129,600 browser executions\u002Fmonth; the same check every 5 minutes is ~25,920.\nPick the longest frequency that still meets your detection-time goal, and 2–3 probes\nnear your users (multiple probes reduce alert flapping; more isn't better).\n\n## Scripted check authoring\n\nStart every script you generate (scripted and browser alike) with a line-1 attribution\ncomment, as shown in the skeletons below. It tells whoever reads the check later how it\nwas authored (and where to find the skill), and the fixed prefix makes skill-authored\nchecks queryable. Keep `Generated by synthetic-monitoring-checks` verbatim — vary only\nthe timestamp (`date -u +%Y-%m-%dT%H:%M:%SZ`).\n\nSkeleton — a login + API action journey with secrets and hard-failing assertions:\n\n```javascript\n\u002F\u002F Generated by synthetic-monitoring-checks (https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fskills) on 2026-07-31T12:00:00Z\nimport http from 'k6\u002Fhttp';\nimport { expect } from 'https:\u002F\u002Fjslib.k6.io\u002Fk6-testing\u002F0.6.1\u002Findex.js';\nimport secrets from 'k6\u002Fsecrets';\n\nconst BASE = 'https:\u002F\u002Fapi.example.com';\n\nexport default async function () {\n  \u002F\u002F Secrets are managed in Synthetics > Config > Secrets — never hardcode credentials.\n  const password = await secrets.get('checkout-monitor-password');\n\n  \u002F\u002F Step 1: authenticate with a dedicated monitoring account\n  const login = http.post(\n    `${BASE}\u002Fauth\u002Flogin`,\n    JSON.stringify({ user: 'sm-checkout-monitor', password }),\n    { headers: { 'Content-Type': 'application\u002Fjson' } }\n  );\n  expect(login.status, 'login should return 200').toEqual(200);\n  const token = login.json('token');\n  expect(token, 'auth token should be present').toBeDefined();\n\n  \u002F\u002F Step 2: exercise the journey and assert the OUTCOME, not just the status\n  const order = http.post(`${BASE}\u002Forders`, JSON.stringify({ sku: 'TEST-SKU-1', qty: 1 }), {\n    headers: { 'Content-Type': 'application\u002Fjson', Authorization: `Bearer ${token}` },\n  });\n  expect(order.status, 'order should be created').toEqual(201);\n  const orderId = order.json('id');\n  expect(orderId, 'order id should be returned').toBeDefined();\n\n  \u002F\u002F Step 3: clean up so the check is idempotent against production\n  \u002F\u002F http.url groups metrics for URLs containing unique IDs — without it, every\n  \u002F\u002F execution creates new time series (cardinality + active-series cost).\n  const del = http.del(http.url`${BASE}\u002Forders\u002F${orderId}`, null, {\n    headers: { Authorization: `Bearer ${token}` },\n  });\n  expect(del.status, 'test order should be cleaned up').toEqual(204);\n}\n```\n\nRules that make a scripted check a good *monitor* (vs a good test):\n\n- **Deterministic**: fixed test data (or generated-then-deleted, as above), no\n  time-of-day or ordering dependence. Every execution must be able to pass at any hour\n  from any probe.\n- **Idempotent against production**: create-then-delete, or use read-only endpoints.\n  The check runs forever — leaked state accumulates forever.\n- **Dedicated test account**: never a real user's credentials; scope it minimally, store\n  the password as an SM secret, and exclude the account from analytics\u002Fbilling.\n- **Assert every step** — an unasserted step that breaks shows up as a *later* step's\n  confusing failure.\n- **Stable URL cardinality**: `http.url` template literal for any URL containing an ID.\n- Keep runtime well under the timeout, and the timeout under the frequency.\n\n### Generating a check from an OpenAPI spec (or similar)\n\nGiven an API description — an OpenAPI\u002FSwagger spec, GraphQL schema, or Postman\ncollection — the mechanical conversion to k6 calls is easy. What matters is what you\nchoose to convert:\n\n1. **Journeys, not endpoints.** Do NOT generate one check per path, or one check that\n   sweeps every path — that monitors the spec, not the service, and every extra check\n   multiplies execution cost. Identify the 1–3 flows whose failure means \"customers are\n   impacted\" (auth → core action → result) and write one scripted check per flow.\n2. **Filter for safety.** Only include mutating operations (`POST`\u002F`PUT`\u002F`DELETE`) when\n   the flow cleans up after itself (create-then-delete, as above) or targets dedicated\n   test resources. A spec lists destructive operations right next to health endpoints —\n   never exercise them against production just because they're documented.\n3. **Assert from the response schema.** The spec tells you exactly what a healthy\n   response contains — assert required fields, not just the status code:\n   `expect(order.json('id'), 'id required by OrdersResponse schema').toBeDefined()`.\n4. **Verify the target URL.** `servers:` blocks (and Postman environments) often list\n   localhost or staging first — confirm the production base URL with the user, and map\n   `securitySchemes` credentials to SM secrets, never to values inlined from the spec.\n   (Secrets in plain HTTP\u002Fprotocol checks are a recent, feature-flagged rollout — check\n   current docs; the scripted `secrets.get()` path always works.)\n5. **Treat `format: int64` ids as strings.** `res.json('id')` parses into a JS number\n   and silently corrupts values past 2^53 (snowflake-style ids), so the readback URL\n   404s on every execution while the create looks fine. Extract from the raw body\n   instead: `const id = (\u002F\"id\":\\s*(\\d+)\u002F.exec(res.body) || [])[1];` — and never do\n   arithmetic on it.\n\nNo API spec at all? Probe the frontend: open the web app with browser devtools (or\n`curl` likely routes) and capture the `\u002Fapi\u002F*` XHR calls it makes — that's a monitorable\nHTTP surface even when the documented backend services are gRPC-only or internal.\n\n## Browser check authoring\n\nRequired scaffold: import `k6\u002Fbrowser` and declare the `chromium` browser type. The UI\nvalidates both.\n\n```javascript\n\u002F\u002F Generated by synthetic-monitoring-checks (https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fskills) on 2026-07-31T12:00:00Z\nimport { browser } from 'k6\u002Fbrowser';\nimport { expect } from 'https:\u002F\u002Fjslib.k6.io\u002Fk6-testing\u002F0.6.1\u002Findex.js';\nimport secrets from 'k6\u002Fsecrets';\n\nexport const options = {\n  scenarios: {\n    ui: {\n      executor: 'shared-iterations',\n      options: { browser: { type: 'chromium' } },\n    },\n  },\n};\n\nexport default async function () {\n  const page = await browser.newPage();\n  try {\n    await page.goto('https:\u002F\u002Fshop.example.com\u002Flogin');\n\n    \u002F\u002F Prefer role\u002Flabel\u002Ftest-id locators over CSS chains — they survive redesigns.\n    const password = await secrets.get('shop-monitor-password');\n    await page.getByLabel('Email').fill('sm-monitor@example.com');\n    await page.getByLabel('Password').fill(password);\n    await page.getByRole('button', { name: 'Sign in' }).click();\n\n    \u002F\u002F Assert the JOURNEY OUTCOME with auto-retrying assertions — never sleep().\n    await expect(page.getByRole('heading', { name: 'Your account' })).toBeVisible();\n\n    await page.getByRole('link', { name: 'Orders' }).click();\n    await expect(page.getByTestId('order-list')).toBeVisible();\n  } finally {\n    await page.close();\n  }\n}\n```\n\nBrowser-specific rules:\n\n- **Locators**: `getByRole` \u002F `getByLabel` \u002F `getByTestId` (ask the app team to add\n  `data-testid` where needed) > text > CSS. Never XPath or generated class names.\n  `getByTestId` assumes `data-testid` — apps instrumented for Cypress often use\n  `data-cy` instead; fall back to `page.locator('[data-cy=\"...\"]')`.\n- **No manual waits before interactions**: locator actions auto-wait for visibility and\n  enabled state. Don't call `waitFor()` before `click()`\u002F`fill()`, don't use\n  `waitForLoadState()`, never `sleep()`.\n- **Auto-retrying `expect()`** (`toBeVisible`, `toBeEnabled`, ...) is the wait mechanism\n  for asserting state you don't interact with. Caveat: despite being listed as\n  retrying, the text matchers (`toHaveText`\u002F`toContainText`) hard-fail on the first\n  *mismatched* read — e.g. an empty string mid-hydration on a client-rendered app.\n  Assert dynamic text by locating it and asserting visibility instead:\n  `await expect(page.getByText('Order confirmed')).toBeVisible()`.\n- **Assertion timeout defaults to 5s** — client-side-rendered apps routinely take\n  longer to first meaningful render. Raise it once and use the configured instance:\n  `const expectUi = expect.configure({ timeout: 20000 });`.\n- **Assert the outcome** (logged-in heading, order list, confirmation text) — a page can\n  load fine while the journey is broken.\n- **`try\u002Ffinally` with `page.close()`** so the browser is released even when an\n  assertion throws.\n- Screenshot artifacts aren't a documented SM feature — don't build failure handling\n  around `page.screenshot()`; rely on assertion messages and the check's logs (SM stores\n  per-execution logs in Loki).\n- Web Vitals (`probe_browser_web_vital_lcp|cls|fcp|inp|ttfb`) are collected\n  automatically — no extra code needed.\n\n## Validate locally, then deploy\n\nSM scripts are plain k6 scripts — always run them locally first:\n\n```bash\nk6 run script.js                                              # scripted check\nK6_BROWSER_HEADLESS=true k6 run browser-check.js              # browser check\nk6 run --secret-source=mock=checkout-monitor-password=example-password script.js   # with secrets\n# Many\u002Flarge secrets: k6 run --secret-source=file=secrets.txt script.js\n```\n\nPass = exit code 0, one iteration, no failed assertions in the summary. Run it 3–5 times;\na script that is 90% reliable locally will page you nightly from 3 probes.\n\nThen create the check (pick one):\n\n- **UI**: Testing & synthetics → Synthetics → Add new check → *k6 scripted* \u002F *k6\n  browser* → paste script → select probes + frequency → **Test** (runs once without\n  saving) → Save.\n- **[gcx](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fgcx)**: `gcx synthetic-monitoring checks test -f\n  check.yaml` is the CLI equivalent of the UI's Test button — runs once against real\n  probes without saving. Then `gcx synthetic-monitoring checks create -f check.yaml` to\n  save. Both accept the script as plain text; gcx base64-encodes it for you. Pull an\n  existing check back out as a starting template with `gcx synthetic-monitoring checks\n  get \u003CID> -o yaml --decode-script` (omit the flag and you get raw base64).\n- **API or Terraform**: see [`references\u002Fapi-and-terraform.md`](references\u002Fapi-and-terraform.md).\n  Key gotchas: API `frequency`\u002F`timeout` are **milliseconds** and `settings.scripted.script`\n  \u002F `settings.browser.script` are **base64-encoded**; Terraform takes the plain script\n  via `file()`.\n\nPick by ownership, not preference: if checks are already Terraform-managed (drift\ndetection, multi-environment, PR review), create and update through Terraform —\nhand-editing state it owns causes drift on the next `apply`. Otherwise, for one-off or\nagent-driven authoring, gcx or the UI are faster. Either way, gcx is still the tool for\nlive inspection, ad-hoc testing, and status\u002Ftimeline investigation, regardless of which\ntool provisioned the check.\n\n## Verify it works, and rollback\n\nWait one frequency interval, then in Explore against the Synthetic Monitoring metrics\n(Prometheus) datasource:\n\n```promql\n# 1 from every selected probe = healthy\nprobe_success{job=\"checkout-flow\"}\n\n# Assertion pass rate per named assertion (scripted\u002Fbrowser)\nprobe_check_success_rate{job=\"checkout-flow\"}\n\n# Journey duration per probe — confirm it's comfortably under the timeout\nprobe_script_duration_seconds{job=\"checkout-flow\"}\n\n# Uptime over time (how the SM app computes it)\nmax by () (max_over_time(probe_success{job=\"checkout-flow\"}[5m]))\n```\n\nA healthy first execution: `probe_success == 1` from every probe, all\n`probe_check_success_rate` series at 1, duration stable across probes, and the check's\nprebuilt dashboard (Synthetics → check → View dashboard) showing logs for each execution.\nBrowser checks should additionally show `probe_browser_web_vital_*` series.\n\n**Rollback**: set the check's `enabled: false` (UI toggle, `gcx synthetic-monitoring\nchecks update`, API update, or Terraform) to\nstop executions without losing history; delete the check only when you no longer need\nits configuration. Alerting: start with `alertSensitivity` \u002F the default alert rules on\n`probe_success` — see the [`testing`](..\u002Ftesting\u002FSKILL.md) skill for alert rule examples.\n\n## Common failure modes\n\n| Symptom | Cause → fix |\n|---|---|\n| Passes locally, fails on all probes | Target not reachable from the public internet (internal DNS, VPN, IP allowlist). Use [private probes](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fset-up\u002Fset-up-private-probes\u002F) for internal targets, or allowlist probe egress |\n| Passes locally, fails on *some* probes | Geo-blocking, regional CDN\u002FWAF rules, or bot protection challenging datacenter IPs. Check `probe` label on failures; exempt the SM `userAgent` or those regions in the WAF |\n| Check \"fails\" in your eyes but `probe_success` stays 1 | Bare `check()` without `fail()`\u002F`expect()` — failures are recorded as metrics only. Convert to `expect()` or `check(...) \\|\\| fail(...)` |\n| Browser check flaps with locator timeouts | Brittle selectors or animation timing. Switch to `getByRole`\u002F`getByTestId`, assert with auto-retrying `expect()`, remove manual waits |\n| `toBeVisible` reports `Expected: visible \u002F Received: hidden` but the element is clearly visible | The locator matches multiple elements (strict mode) — the error message is misleading. Tighten the selector or use `.first()` |\n| Create succeeds but readback 404s on every execution | The id exceeds `Number.MAX_SAFE_INTEGER` (2^53) and `res.json()` silently rounded it — extract int64 ids from the raw body as strings (see the OpenAPI section) |\n| `secrets.get()` fails | Secret name mismatch (names are exact, ≤253 chars, letters\u002Fnumbers\u002F`-`\u002F`_`), secret deleted (checks fail until recreated), or the editing user lacks the Admin\u002FEditor role or \"Checks writer\" permission |\n| Executions time out but the journey is fine | Timeout too low for the journey (max 180s) — raise it; or the script does unbounded work per iteration. Also confirm timeout \u003C frequency |\n| `Target has crashed` in browser check logs | Page exceeds the 1GB probe browser memory — trim the journey, block heavy third-party resources, or use a private probe with more memory |\n| UI rejects a browser script | Bundled\u002Fminified script fails the UI's import validation — create it via API or Terraform instead |\n| Metrics\u002Fbilling explosion after adding a check | Unique IDs in URLs creating per-execution time series — use `http.url`, and check frequency × probe count against the cost formula above |\n\n## References\n\n- [`references\u002Fapi-and-terraform.md`](references\u002Fapi-and-terraform.md) — SM API auth + check CRUD payloads (scripted, browser, MultiHTTP) and Terraform examples for every check type, including the protocol checks (HTTP, ping, DNS, TCP, traceroute, gRPC)\n\n## Resources\n\n- [Synthetic Monitoring docs](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002F)\n- [k6 scripted checks](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fchecks\u002Fk6\u002F) · [k6 browser checks](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fchecks\u002Fk6-browser\u002F)\n- [Secrets management](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Ftesting\u002Fsynthetic-monitoring\u002Fcreate-checks\u002Fmanage-secrets\u002F)\n- [k6 assertions (`expect`)](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fk6\u002Flatest\u002Fusing-k6\u002Fassertions\u002F) · [k6 browser module](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fk6\u002Flatest\u002Fusing-k6-browser\u002F)\n- k6 fundamentals and load testing: `grafana-k6` plugin, [`k6` skill](..\u002F..\u002Fgrafana-k6\u002Fk6\u002FSKILL.md)\n",{"name":5,"license":15,"description":7},"master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fsynthetic-monitoring-checks",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add stanfish06\u002Fskillquarium --skill synthetic-monitoring-checks",{"tool":38,"command":39},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill synthetic-monitoring-checks",{"tool":41,"command":42},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill synthetic-monitoring-checks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fsynthetic-monitoring-checks\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fapi-and-terraform.md","REFERENCE","参考文档",11124,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fsynthetic-monitoring-checks\u002Freferences\u002Fapi-and-terraform.md",[53,61,69,76,83,90],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":65,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]