[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-grafana-k6-test-maintenance":3,"mdc-jzeduw-key":33,"related-org-grafana-k6-test-maintenance":1353,"related-repo-grafana-k6-test-maintenance":1544},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":31,"mdContent":32},"k6-test-maintenance","maintain and improve k6 test scripts","Maintain and improve existing k6 test scripts. Covers threshold tightening based on trend data, version migration between k6 releases, auto-fixing tests when the underlying service changes, refactoring for cleanliness, and auditing scripts against current best practices from docs. Use when the user asks to fix a failing k6 test, tighten thresholds, migrate a script to a new k6 version, refactor a test, update a script after a service change, or improve a script with best practices. Trigger on phrases like \"fix my k6 test\", \"tighten my thresholds\", \"migrate to k6 v2\", \"update my test script\", \"refactor this k6 test\", \"my test is failing after a deploy\", \"apply best practices to my script\", \"modernize my k6 test\", or \"the service changed and my test broke\". Also trigger when another skill (k6-trend-analysis or k6-cloud-investigate-test) hands off with a recommendation to edit a script.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"grafana","Grafana","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fgrafana.jpg",[12,16,19,20],{"name":13,"slug":14,"type":15},"Maintenance","maintenance","tag",{"name":17,"slug":18,"type":15},"Performance","performance",{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},"Testing","testing",189,"https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fskills","2026-07-18T05:48:32.556704",null,16,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":26},[],"https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fgrafana-k6\u002Fk6-test-maintenance","---\nname: k6-test-maintenance\ndescription: >\n  Maintain and improve existing k6 test scripts. Covers threshold tightening\n  based on trend data, version migration between k6 releases, auto-fixing tests\n  when the underlying service changes, refactoring for cleanliness, and auditing\n  scripts against current best practices from docs. Use when the user asks to\n  fix a failing k6 test, tighten thresholds, migrate a script to a new k6\n  version, refactor a test, update a script after a service change, or improve\n  a script with best practices. Trigger on phrases like \"fix my k6 test\",\n  \"tighten my thresholds\", \"migrate to k6 v2\", \"update my test script\",\n  \"refactor this k6 test\", \"my test is failing after a deploy\", \"apply best\n  practices to my script\", \"modernize my k6 test\", or \"the service changed and\n  my test broke\". Also trigger when another skill (k6-trend-analysis or\n  k6-cloud-investigate-test) hands off with a recommendation to edit a script.\n---\n\n# k6 Test Maintenance\n\nMaintain, fix, and improve existing k6 test scripts. Five maintenance tasks,\neach with a step-by-step procedure in [`references\u002Fworkflows.md`](references\u002Fworkflows.md):\n\n1. **Threshold tightening** -- adjust threshold values based on observed metrics\n2. **Version migration** -- update scripts for new k6 releases\n3. **Service change adaptation** -- fix tests when the underlying service changes\n4. **Refactoring** -- clean up and modernize test code\n5. **Best practices audit** -- check scripts against current k6 best practices\n\n## Core principle: behavior-aware change control\n\nClassify every proposed change by whether it alters the test's runtime behavior:\n\n- **Syntactic** (behavior unchanged): the k6 runtime produces identical metrics,\n  pass\u002Ffail results, and endpoints. Examples: rename a variable, `let` → `const`,\n  remove unused imports, update comments, reformat. **Apply directly.**\n- **Behavioral** (behavior differs): anything affecting metrics, pass\u002Ffail,\n  timing, request targets, or load shape. Examples: threshold value changes,\n  adding `sleep()`, endpoint URL updates, check rewrites, scenario changes, new\n  thresholds. **Always present as a diff with rationale and require confirmation.**\n\nThe threshold for \"behavioral\" is deliberately low. If in doubt, treat it as\nbehavioral and ask -- a trivial-looking threshold change can cascade to CI\ngates, SLO calculations, and alerting.\n\n## Dependencies\n\n- **`k6-manage`** -- fetch and edit GCk6-hosted scripts safely (§5: GET, backup,\n  edit, validate, PUT, verify by sha256). Read it before touching any\n  cloud-hosted script.\n- **`gcx`** -- sole tool for Grafana Cloud API access.\n- **mcp-k6** tools -- `validate_script` and `get_documentation`. Check\n  availability first; fall back to `k6 x docs` if absent.\n- **`k6 x docs`** CLI -- documentation lookup when mcp-k6 isn't configured.\n- **`k6` CLI** -- local validation (`k6 inspect`, `k6 run`).\n\n## Validation loop (every edit)\n\nEvery workflow produces a modified script. Never present or PUT an unvalidated\nscript -- run this loop, fixing and re-running until it passes:\n\n1. **Parse-check**: `k6 inspect \u003Cscript>` -- catches syntax errors, invalid\n   options, broken imports. Works on all types including browser tests (no\n   browser needed). If mcp-k6 is available, also run `validate_script`.\n2. **Local smoke** (non-browser, service reachable):\n   `k6 run --vus 1 --iterations 1 \u003Cscript>`.\n3. **Classify the change** (below) and **verify per the matrix** -- recipes in\n   [`references\u002Fverification.md`](references\u002Fverification.md).\n4. **Cloud-hosted scripts**: apply via the k6-manage §5 safe-edit recipe\n   (GET → backup → edit → validate → PUT as `application\u002Foctet-stream` →\n   sha256-verify).\n\n### Change classification\n\n- **Class A -- declarative-config only.** The diff is confined to\n  `options.thresholds` or similar declarative fields that don't alter what the\n  k6 runtime executes; the bytes inside `default function`, imported modules,\n  and check predicates are byte-identical. Example: `p(95)\u003C500` → `p(95)\u003C420`.\n- **Class B -- runtime logic changes.** Any change to `default function`,\n  imports, helper modules, request URLs, check predicates, or to\n  `scenarios.*.vus`\u002F`iterations`\u002F`duration`\u002F`executor` (which alter load shape\n  and metric distributions). Example: changing a URL, adding a check, rewriting\n  auth, switching executors.\n\nWhen in doubt, treat as Class B.\n\n### Verification matrix\n\n| Class | Test duration | Verification |\n|-------|---------------|--------------|\n| **A** | any | sha256 + `k6 inspect` + **historical pass\u002Ffail prediction**. No cloud run needed. |\n| **B** | short (\u003C 5 min) | sha256 + `k6 inspect` + **full cloud run** (k6-manage §11). |\n| **B** | long (≥ 5 min) | sha256 + `k6 inspect` + **local 1-iteration smoke** + **`k6 cloud run` of a local copy with `--vus 1 --iterations 1`**. PUT to the saved test only after the cloud smoke passes. |\n\nVerification depth depends on the change class, not the test's duration -- most\nedits don't need a full run, and production tests may run for hours. Per-class\nrecipes (Class A prediction table, Class B short\u002Flong, edge cases like scenario\nchanges and loosening) are in\n[`references\u002Fverification.md`](references\u002Fverification.md).\n\n## Documentation lookup\n\nBefore proposing any change that touches k6 APIs, imports, or patterns, confirm\nit against current docs and **cite the source** in your report -- this grounds\nrecommendations in the real API, not stale model knowledge. Look up in order:\n\n1. **mcp-k6** (preferred): `get_documentation(\"best_practices\")`,\n   `get_documentation(\"javascript-api\u002Fk6-browser\")`, `validate_script(...)`.\n2. **`k6 x docs`** CLI (always available):\n   ```bash\n   k6 x docs using-k6 thresholds\n   k6 x docs javascript-api k6-http\n   k6 x docs search \"websocket migration\"\n   ```\n   2-call strategy: try the direct path first; if it returns a topic list, pick\n   the subtopic and call again. Full parent paths required (`using-k6 thresholds`,\n   not `thresholds`). `k6 x docs` serves docs for the installed k6 version -- it\n   may lag the target version when migrating.\n3. **Web fetch** (last resort): `https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fk6\u002Flatest\u002F`.\n\n## Async check pattern\n\nA common browser-test bug: using `check()` from `k6` with async predicates. The\nbuilt-in `check()` does not await Promises, so\n`check(page, { 'title': p => p.locator('h1').textContent() === 'Foo' })` silently\npasses because the Promise object is truthy. Two valid fixes:\n\n- **Async-aware check from jslib**:\n  `import { check } from 'https:\u002F\u002Fjslib.k6.io\u002Fk6-utils\u002F1.5.0\u002Findex.js'` -- then\n  predicates can be `async` and `await` inside them works.\n- **Resolve the value before the check**:\n  `const text = await page.locator('h1').textContent(); check(text, { ... })` --\n  keeps the standard sync `check` from `k6`.\n\nWhen you hit this during any workflow (migration, refactor, audit), flag it as a\nbehavioral bug and propose one of these fixes.\n\n## Script sources\n\n- **GCk6-hosted** -- fetched and pushed via `k6-manage` §5 (GET → backup → edit →\n  validate → PUT → verify sha256).\n- **Local on disk** -- read and edit directly. Validate before presenting.\n\nDetermine the source before starting: a GCk6 test URL or ID is cloud-hosted; a\nfile path is local.\n\n## Workflows\n\nFull procedures are in [`references\u002Fworkflows.md`](references\u002Fworkflows.md):\n\n- **[Threshold tightening](references\u002Fworkflows.md#threshold-tightening)** --\n  propose values with observed-metric justification, diff, apply, Class A verify.\n- **[Version migration](references\u002Fworkflows.md#version-migration)** -- find\n  deprecated\u002Frenamed APIs, classify syntactic vs behavioral, apply, Class B verify.\n- **[Service change adaptation](references\u002Fworkflows.md#service-change-adaptation)**\n  -- map each service change to a script change, propose fixes, Class B verify.\n- **[Refactoring](references\u002Fworkflows.md#refactoring)** -- find issues,\n  auto-apply syntactic, propose behavioral, Class B verify after confirmation.\n- **[Best practices audit](references\u002Fworkflows.md#best-practices-audit)** --\n  doc-driven audit across thresholds, load design, resource management, code\n  quality, and browser specifics.\n\nAll five follow behavior-aware change control: auto-apply syntactic changes,\npresent behavioral ones as diffs for confirmation.\n\n## Gotchas\n\n| Issue | Detail |\n|-------|--------|\n| **Cloud script format** | GCk6 scripts can be single files or tar archives. Detect with `file(1)` before editing (see k6-manage §5). |\n| **Zero-observation thresholds** | A threshold on a metric with no observations passes by default. When adding new thresholds, ensure the metric is actually emitted by the test. |\n| **abortOnFail cascades** | If a threshold has `abortOnFail: true`, tightening it means runs abort earlier. Warn the user. |\n| **Browser script validation** | Browser scripts can't be validated with `k6 run --iterations 1` without a browser. Use `k6 inspect` for parse-only validation, or `validate_script` via mcp-k6. |\n| **k6 x docs version alignment** | `k6 x docs` serves docs for the installed k6 version; when migrating to a newer version, local docs may not reflect the target API. Note this in migration lookups. |\n| **Script drift after edit** | After pushing a cloud-hosted script, the next run uses the new version, but historical runs keep their bundled snapshot. To investigate a past failure, compare the run-bundled script (read-only), not the current one. |\n\n## References\n\n- [`references\u002Fworkflows.md`](references\u002Fworkflows.md) -- step-by-step procedures for the five maintenance tasks\n- [`references\u002Fverification.md`](references\u002Fverification.md) -- per-class post-edit verification recipes\n",{"data":34,"body":35},{"name":4,"description":6},{"type":36,"children":37},"root",[38,46,65,121,128,133,191,196,202,312,318,323,413,420,510,515,521,672,686,692,704,899,905,940,1006,1011,1017,1047,1052,1058,1072,1140,1145,1151,1312,1318,1347],{"type":39,"tag":40,"props":41,"children":42},"element","h1",{"id":4},[43],{"type":44,"value":45},"text","k6 Test Maintenance",{"type":39,"tag":47,"props":48,"children":49},"p",{},[50,52,63],{"type":44,"value":51},"Maintain, fix, and improve existing k6 test scripts. Five maintenance tasks,\neach with a step-by-step procedure in ",{"type":39,"tag":53,"props":54,"children":56},"a",{"href":55},"references\u002Fworkflows.md",[57],{"type":39,"tag":58,"props":59,"children":61},"code",{"className":60},[],[62],{"type":44,"value":55},{"type":44,"value":64},":",{"type":39,"tag":66,"props":67,"children":68},"ol",{},[69,81,91,101,111],{"type":39,"tag":70,"props":71,"children":72},"li",{},[73,79],{"type":39,"tag":74,"props":75,"children":76},"strong",{},[77],{"type":44,"value":78},"Threshold tightening",{"type":44,"value":80}," -- adjust threshold values based on observed metrics",{"type":39,"tag":70,"props":82,"children":83},{},[84,89],{"type":39,"tag":74,"props":85,"children":86},{},[87],{"type":44,"value":88},"Version migration",{"type":44,"value":90}," -- update scripts for new k6 releases",{"type":39,"tag":70,"props":92,"children":93},{},[94,99],{"type":39,"tag":74,"props":95,"children":96},{},[97],{"type":44,"value":98},"Service change adaptation",{"type":44,"value":100}," -- fix tests when the underlying service changes",{"type":39,"tag":70,"props":102,"children":103},{},[104,109],{"type":39,"tag":74,"props":105,"children":106},{},[107],{"type":44,"value":108},"Refactoring",{"type":44,"value":110}," -- clean up and modernize test code",{"type":39,"tag":70,"props":112,"children":113},{},[114,119],{"type":39,"tag":74,"props":115,"children":116},{},[117],{"type":44,"value":118},"Best practices audit",{"type":44,"value":120}," -- check scripts against current k6 best practices",{"type":39,"tag":122,"props":123,"children":125},"h2",{"id":124},"core-principle-behavior-aware-change-control",[126],{"type":44,"value":127},"Core principle: behavior-aware change control",{"type":39,"tag":47,"props":129,"children":130},{},[131],{"type":44,"value":132},"Classify every proposed change by whether it alters the test's runtime behavior:",{"type":39,"tag":134,"props":135,"children":136},"ul",{},[137,168],{"type":39,"tag":70,"props":138,"children":139},{},[140,145,147,153,155,161,163],{"type":39,"tag":74,"props":141,"children":142},{},[143],{"type":44,"value":144},"Syntactic",{"type":44,"value":146}," (behavior unchanged): the k6 runtime produces identical metrics,\npass\u002Ffail results, and endpoints. Examples: rename a variable, ",{"type":39,"tag":58,"props":148,"children":150},{"className":149},[],[151],{"type":44,"value":152},"let",{"type":44,"value":154}," → ",{"type":39,"tag":58,"props":156,"children":158},{"className":157},[],[159],{"type":44,"value":160},"const",{"type":44,"value":162},",\nremove unused imports, update comments, reformat. ",{"type":39,"tag":74,"props":164,"children":165},{},[166],{"type":44,"value":167},"Apply directly.",{"type":39,"tag":70,"props":169,"children":170},{},[171,176,178,184,186],{"type":39,"tag":74,"props":172,"children":173},{},[174],{"type":44,"value":175},"Behavioral",{"type":44,"value":177}," (behavior differs): anything affecting metrics, pass\u002Ffail,\ntiming, request targets, or load shape. Examples: threshold value changes,\nadding ",{"type":39,"tag":58,"props":179,"children":181},{"className":180},[],[182],{"type":44,"value":183},"sleep()",{"type":44,"value":185},", endpoint URL updates, check rewrites, scenario changes, new\nthresholds. ",{"type":39,"tag":74,"props":187,"children":188},{},[189],{"type":44,"value":190},"Always present as a diff with rationale and require confirmation.",{"type":39,"tag":47,"props":192,"children":193},{},[194],{"type":44,"value":195},"The threshold for \"behavioral\" is deliberately low. If in doubt, treat it as\nbehavioral and ask -- a trivial-looking threshold change can cascade to CI\ngates, SLO calculations, and alerting.",{"type":39,"tag":122,"props":197,"children":199},{"id":198},"dependencies",[200],{"type":44,"value":201},"Dependencies",{"type":39,"tag":134,"props":203,"children":204},{},[205,219,233,267,280],{"type":39,"tag":70,"props":206,"children":207},{},[208,217],{"type":39,"tag":74,"props":209,"children":210},{},[211],{"type":39,"tag":58,"props":212,"children":214},{"className":213},[],[215],{"type":44,"value":216},"k6-manage",{"type":44,"value":218}," -- fetch and edit GCk6-hosted scripts safely (§5: GET, backup,\nedit, validate, PUT, verify by sha256). Read it before touching any\ncloud-hosted script.",{"type":39,"tag":70,"props":220,"children":221},{},[222,231],{"type":39,"tag":74,"props":223,"children":224},{},[225],{"type":39,"tag":58,"props":226,"children":228},{"className":227},[],[229],{"type":44,"value":230},"gcx",{"type":44,"value":232}," -- sole tool for Grafana Cloud API access.",{"type":39,"tag":70,"props":234,"children":235},{},[236,241,243,249,251,257,259,265],{"type":39,"tag":74,"props":237,"children":238},{},[239],{"type":44,"value":240},"mcp-k6",{"type":44,"value":242}," tools -- ",{"type":39,"tag":58,"props":244,"children":246},{"className":245},[],[247],{"type":44,"value":248},"validate_script",{"type":44,"value":250}," and ",{"type":39,"tag":58,"props":252,"children":254},{"className":253},[],[255],{"type":44,"value":256},"get_documentation",{"type":44,"value":258},". Check\navailability first; fall back to ",{"type":39,"tag":58,"props":260,"children":262},{"className":261},[],[263],{"type":44,"value":264},"k6 x docs",{"type":44,"value":266}," if absent.",{"type":39,"tag":70,"props":268,"children":269},{},[270,278],{"type":39,"tag":74,"props":271,"children":272},{},[273],{"type":39,"tag":58,"props":274,"children":276},{"className":275},[],[277],{"type":44,"value":264},{"type":44,"value":279}," CLI -- documentation lookup when mcp-k6 isn't configured.",{"type":39,"tag":70,"props":281,"children":282},{},[283,294,296,302,304,310],{"type":39,"tag":74,"props":284,"children":285},{},[286,292],{"type":39,"tag":58,"props":287,"children":289},{"className":288},[],[290],{"type":44,"value":291},"k6",{"type":44,"value":293}," CLI",{"type":44,"value":295}," -- local validation (",{"type":39,"tag":58,"props":297,"children":299},{"className":298},[],[300],{"type":44,"value":301},"k6 inspect",{"type":44,"value":303},", ",{"type":39,"tag":58,"props":305,"children":307},{"className":306},[],[308],{"type":44,"value":309},"k6 run",{"type":44,"value":311},").",{"type":39,"tag":122,"props":313,"children":315},{"id":314},"validation-loop-every-edit",[316],{"type":44,"value":317},"Validation loop (every edit)",{"type":39,"tag":47,"props":319,"children":320},{},[321],{"type":44,"value":322},"Every workflow produces a modified script. Never present or PUT an unvalidated\nscript -- run this loop, fixing and re-running until it passes:",{"type":39,"tag":66,"props":324,"children":325},{},[326,351,368,395],{"type":39,"tag":70,"props":327,"children":328},{},[329,334,336,342,344,349],{"type":39,"tag":74,"props":330,"children":331},{},[332],{"type":44,"value":333},"Parse-check",{"type":44,"value":335},": ",{"type":39,"tag":58,"props":337,"children":339},{"className":338},[],[340],{"type":44,"value":341},"k6 inspect \u003Cscript>",{"type":44,"value":343}," -- catches syntax errors, invalid\noptions, broken imports. Works on all types including browser tests (no\nbrowser needed). If mcp-k6 is available, also run ",{"type":39,"tag":58,"props":345,"children":347},{"className":346},[],[348],{"type":44,"value":248},{"type":44,"value":350},".",{"type":39,"tag":70,"props":352,"children":353},{},[354,359,361,367],{"type":39,"tag":74,"props":355,"children":356},{},[357],{"type":44,"value":358},"Local smoke",{"type":44,"value":360}," (non-browser, service reachable):\n",{"type":39,"tag":58,"props":362,"children":364},{"className":363},[],[365],{"type":44,"value":366},"k6 run --vus 1 --iterations 1 \u003Cscript>",{"type":44,"value":350},{"type":39,"tag":70,"props":369,"children":370},{},[371,376,378,383,385,394],{"type":39,"tag":74,"props":372,"children":373},{},[374],{"type":44,"value":375},"Classify the change",{"type":44,"value":377}," (below) and ",{"type":39,"tag":74,"props":379,"children":380},{},[381],{"type":44,"value":382},"verify per the matrix",{"type":44,"value":384}," -- recipes in\n",{"type":39,"tag":53,"props":386,"children":388},{"href":387},"references\u002Fverification.md",[389],{"type":39,"tag":58,"props":390,"children":392},{"className":391},[],[393],{"type":44,"value":387},{"type":44,"value":350},{"type":39,"tag":70,"props":396,"children":397},{},[398,403,405,411],{"type":39,"tag":74,"props":399,"children":400},{},[401],{"type":44,"value":402},"Cloud-hosted scripts",{"type":44,"value":404},": apply via the k6-manage §5 safe-edit recipe\n(GET → backup → edit → validate → PUT as ",{"type":39,"tag":58,"props":406,"children":408},{"className":407},[],[409],{"type":44,"value":410},"application\u002Foctet-stream",{"type":44,"value":412}," →\nsha256-verify).",{"type":39,"tag":414,"props":415,"children":417},"h3",{"id":416},"change-classification",[418],{"type":44,"value":419},"Change classification",{"type":39,"tag":134,"props":421,"children":422},{},[423,463],{"type":39,"tag":70,"props":424,"children":425},{},[426,431,433,439,441,447,449,455,456,462],{"type":39,"tag":74,"props":427,"children":428},{},[429],{"type":44,"value":430},"Class A -- declarative-config only.",{"type":44,"value":432}," The diff is confined to\n",{"type":39,"tag":58,"props":434,"children":436},{"className":435},[],[437],{"type":44,"value":438},"options.thresholds",{"type":44,"value":440}," or similar declarative fields that don't alter what the\nk6 runtime executes; the bytes inside ",{"type":39,"tag":58,"props":442,"children":444},{"className":443},[],[445],{"type":44,"value":446},"default function",{"type":44,"value":448},", imported modules,\nand check predicates are byte-identical. Example: ",{"type":39,"tag":58,"props":450,"children":452},{"className":451},[],[453],{"type":44,"value":454},"p(95)\u003C500",{"type":44,"value":154},{"type":39,"tag":58,"props":457,"children":459},{"className":458},[],[460],{"type":44,"value":461},"p(95)\u003C420",{"type":44,"value":350},{"type":39,"tag":70,"props":464,"children":465},{},[466,471,473,478,480,486,488,494,495,501,502,508],{"type":39,"tag":74,"props":467,"children":468},{},[469],{"type":44,"value":470},"Class B -- runtime logic changes.",{"type":44,"value":472}," Any change to ",{"type":39,"tag":58,"props":474,"children":476},{"className":475},[],[477],{"type":44,"value":446},{"type":44,"value":479},",\nimports, helper modules, request URLs, check predicates, or to\n",{"type":39,"tag":58,"props":481,"children":483},{"className":482},[],[484],{"type":44,"value":485},"scenarios.*.vus",{"type":44,"value":487},"\u002F",{"type":39,"tag":58,"props":489,"children":491},{"className":490},[],[492],{"type":44,"value":493},"iterations",{"type":44,"value":487},{"type":39,"tag":58,"props":496,"children":498},{"className":497},[],[499],{"type":44,"value":500},"duration",{"type":44,"value":487},{"type":39,"tag":58,"props":503,"children":505},{"className":504},[],[506],{"type":44,"value":507},"executor",{"type":44,"value":509}," (which alter load shape\nand metric distributions). Example: changing a URL, adding a check, rewriting\nauth, switching executors.",{"type":39,"tag":47,"props":511,"children":512},{},[513],{"type":44,"value":514},"When in doubt, treat as Class B.",{"type":39,"tag":414,"props":516,"children":518},{"id":517},"verification-matrix",[519],{"type":44,"value":520},"Verification matrix",{"type":39,"tag":522,"props":523,"children":524},"table",{},[525,549],{"type":39,"tag":526,"props":527,"children":528},"thead",{},[529],{"type":39,"tag":530,"props":531,"children":532},"tr",{},[533,539,544],{"type":39,"tag":534,"props":535,"children":536},"th",{},[537],{"type":44,"value":538},"Class",{"type":39,"tag":534,"props":540,"children":541},{},[542],{"type":44,"value":543},"Test duration",{"type":39,"tag":534,"props":545,"children":546},{},[547],{"type":44,"value":548},"Verification",{"type":39,"tag":550,"props":551,"children":552},"tbody",{},[553,589,622],{"type":39,"tag":530,"props":554,"children":555},{},[556,565,570],{"type":39,"tag":557,"props":558,"children":559},"td",{},[560],{"type":39,"tag":74,"props":561,"children":562},{},[563],{"type":44,"value":564},"A",{"type":39,"tag":557,"props":566,"children":567},{},[568],{"type":44,"value":569},"any",{"type":39,"tag":557,"props":571,"children":572},{},[573,575,580,582,587],{"type":44,"value":574},"sha256 + ",{"type":39,"tag":58,"props":576,"children":578},{"className":577},[],[579],{"type":44,"value":301},{"type":44,"value":581}," + ",{"type":39,"tag":74,"props":583,"children":584},{},[585],{"type":44,"value":586},"historical pass\u002Ffail prediction",{"type":44,"value":588},". No cloud run needed.",{"type":39,"tag":530,"props":590,"children":591},{},[592,600,605],{"type":39,"tag":557,"props":593,"children":594},{},[595],{"type":39,"tag":74,"props":596,"children":597},{},[598],{"type":44,"value":599},"B",{"type":39,"tag":557,"props":601,"children":602},{},[603],{"type":44,"value":604},"short (\u003C 5 min)",{"type":39,"tag":557,"props":606,"children":607},{},[608,609,614,615,620],{"type":44,"value":574},{"type":39,"tag":58,"props":610,"children":612},{"className":611},[],[613],{"type":44,"value":301},{"type":44,"value":581},{"type":39,"tag":74,"props":616,"children":617},{},[618],{"type":44,"value":619},"full cloud run",{"type":44,"value":621}," (k6-manage §11).",{"type":39,"tag":530,"props":623,"children":624},{},[625,632,637],{"type":39,"tag":557,"props":626,"children":627},{},[628],{"type":39,"tag":74,"props":629,"children":630},{},[631],{"type":44,"value":599},{"type":39,"tag":557,"props":633,"children":634},{},[635],{"type":44,"value":636},"long (≥ 5 min)",{"type":39,"tag":557,"props":638,"children":639},{},[640,641,646,647,652,653,670],{"type":44,"value":574},{"type":39,"tag":58,"props":642,"children":644},{"className":643},[],[645],{"type":44,"value":301},{"type":44,"value":581},{"type":39,"tag":74,"props":648,"children":649},{},[650],{"type":44,"value":651},"local 1-iteration smoke",{"type":44,"value":581},{"type":39,"tag":74,"props":654,"children":655},{},[656,662,664],{"type":39,"tag":58,"props":657,"children":659},{"className":658},[],[660],{"type":44,"value":661},"k6 cloud run",{"type":44,"value":663}," of a local copy with ",{"type":39,"tag":58,"props":665,"children":667},{"className":666},[],[668],{"type":44,"value":669},"--vus 1 --iterations 1",{"type":44,"value":671},". PUT to the saved test only after the cloud smoke passes.",{"type":39,"tag":47,"props":673,"children":674},{},[675,677,685],{"type":44,"value":676},"Verification depth depends on the change class, not the test's duration -- most\nedits don't need a full run, and production tests may run for hours. Per-class\nrecipes (Class A prediction table, Class B short\u002Flong, edge cases like scenario\nchanges and loosening) are in\n",{"type":39,"tag":53,"props":678,"children":679},{"href":387},[680],{"type":39,"tag":58,"props":681,"children":683},{"className":682},[],[684],{"type":44,"value":387},{"type":44,"value":350},{"type":39,"tag":122,"props":687,"children":689},{"id":688},"documentation-lookup",[690],{"type":44,"value":691},"Documentation lookup",{"type":39,"tag":47,"props":693,"children":694},{},[695,697,702],{"type":44,"value":696},"Before proposing any change that touches k6 APIs, imports, or patterns, confirm\nit against current docs and ",{"type":39,"tag":74,"props":698,"children":699},{},[700],{"type":44,"value":701},"cite the source",{"type":44,"value":703}," in your report -- this grounds\nrecommendations in the real API, not stale model knowledge. Look up in order:",{"type":39,"tag":66,"props":705,"children":706},{},[707,738,882],{"type":39,"tag":70,"props":708,"children":709},{},[710,714,716,722,724,730,731,737],{"type":39,"tag":74,"props":711,"children":712},{},[713],{"type":44,"value":240},{"type":44,"value":715}," (preferred): ",{"type":39,"tag":58,"props":717,"children":719},{"className":718},[],[720],{"type":44,"value":721},"get_documentation(\"best_practices\")",{"type":44,"value":723},",\n",{"type":39,"tag":58,"props":725,"children":727},{"className":726},[],[728],{"type":44,"value":729},"get_documentation(\"javascript-api\u002Fk6-browser\")",{"type":44,"value":303},{"type":39,"tag":58,"props":732,"children":734},{"className":733},[],[735],{"type":44,"value":736},"validate_script(...)",{"type":44,"value":350},{"type":39,"tag":70,"props":739,"children":740},{},[741,749,751,857,859,865,867,873,875,880],{"type":39,"tag":74,"props":742,"children":743},{},[744],{"type":39,"tag":58,"props":745,"children":747},{"className":746},[],[748],{"type":44,"value":264},{"type":44,"value":750}," CLI (always available):\n",{"type":39,"tag":752,"props":753,"children":758},"pre",{"className":754,"code":755,"language":756,"meta":757,"style":757},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","k6 x docs using-k6 thresholds\nk6 x docs javascript-api k6-http\nk6 x docs search \"websocket migration\"\n","bash","",[759],{"type":39,"tag":58,"props":760,"children":761},{"__ignoreMap":757},[762,794,820],{"type":39,"tag":763,"props":764,"children":767},"span",{"class":765,"line":766},"line",1,[768,773,779,784,789],{"type":39,"tag":763,"props":769,"children":771},{"style":770},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[772],{"type":44,"value":291},{"type":39,"tag":763,"props":774,"children":776},{"style":775},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[777],{"type":44,"value":778}," x",{"type":39,"tag":763,"props":780,"children":781},{"style":775},[782],{"type":44,"value":783}," docs",{"type":39,"tag":763,"props":785,"children":786},{"style":775},[787],{"type":44,"value":788}," using-k6",{"type":39,"tag":763,"props":790,"children":791},{"style":775},[792],{"type":44,"value":793}," thresholds\n",{"type":39,"tag":763,"props":795,"children":797},{"class":765,"line":796},2,[798,802,806,810,815],{"type":39,"tag":763,"props":799,"children":800},{"style":770},[801],{"type":44,"value":291},{"type":39,"tag":763,"props":803,"children":804},{"style":775},[805],{"type":44,"value":778},{"type":39,"tag":763,"props":807,"children":808},{"style":775},[809],{"type":44,"value":783},{"type":39,"tag":763,"props":811,"children":812},{"style":775},[813],{"type":44,"value":814}," javascript-api",{"type":39,"tag":763,"props":816,"children":817},{"style":775},[818],{"type":44,"value":819}," k6-http\n",{"type":39,"tag":763,"props":821,"children":823},{"class":765,"line":822},3,[824,828,832,836,841,847,852],{"type":39,"tag":763,"props":825,"children":826},{"style":770},[827],{"type":44,"value":291},{"type":39,"tag":763,"props":829,"children":830},{"style":775},[831],{"type":44,"value":778},{"type":39,"tag":763,"props":833,"children":834},{"style":775},[835],{"type":44,"value":783},{"type":39,"tag":763,"props":837,"children":838},{"style":775},[839],{"type":44,"value":840}," search",{"type":39,"tag":763,"props":842,"children":844},{"style":843},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[845],{"type":44,"value":846}," \"",{"type":39,"tag":763,"props":848,"children":849},{"style":775},[850],{"type":44,"value":851},"websocket migration",{"type":39,"tag":763,"props":853,"children":854},{"style":843},[855],{"type":44,"value":856},"\"\n",{"type":44,"value":858},"\n2-call strategy: try the direct path first; if it returns a topic list, pick\nthe subtopic and call again. Full parent paths required (",{"type":39,"tag":58,"props":860,"children":862},{"className":861},[],[863],{"type":44,"value":864},"using-k6 thresholds",{"type":44,"value":866},",\nnot ",{"type":39,"tag":58,"props":868,"children":870},{"className":869},[],[871],{"type":44,"value":872},"thresholds",{"type":44,"value":874},"). ",{"type":39,"tag":58,"props":876,"children":878},{"className":877},[],[879],{"type":44,"value":264},{"type":44,"value":881}," serves docs for the installed k6 version -- it\nmay lag the target version when migrating.",{"type":39,"tag":70,"props":883,"children":884},{},[885,890,892,898],{"type":39,"tag":74,"props":886,"children":887},{},[888],{"type":44,"value":889},"Web fetch",{"type":44,"value":891}," (last resort): ",{"type":39,"tag":58,"props":893,"children":895},{"className":894},[],[896],{"type":44,"value":897},"https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fk6\u002Flatest\u002F",{"type":44,"value":350},{"type":39,"tag":122,"props":900,"children":902},{"id":901},"async-check-pattern",[903],{"type":44,"value":904},"Async check pattern",{"type":39,"tag":47,"props":906,"children":907},{},[908,910,916,918,923,925,930,932,938],{"type":44,"value":909},"A common browser-test bug: using ",{"type":39,"tag":58,"props":911,"children":913},{"className":912},[],[914],{"type":44,"value":915},"check()",{"type":44,"value":917}," from ",{"type":39,"tag":58,"props":919,"children":921},{"className":920},[],[922],{"type":44,"value":291},{"type":44,"value":924}," with async predicates. The\nbuilt-in ",{"type":39,"tag":58,"props":926,"children":928},{"className":927},[],[929],{"type":44,"value":915},{"type":44,"value":931}," does not await Promises, so\n",{"type":39,"tag":58,"props":933,"children":935},{"className":934},[],[936],{"type":44,"value":937},"check(page, { 'title': p => p.locator('h1').textContent() === 'Foo' })",{"type":44,"value":939}," silently\npasses because the Promise object is truthy. Two valid fixes:",{"type":39,"tag":134,"props":941,"children":942},{},[943,976],{"type":39,"tag":70,"props":944,"children":945},{},[946,951,953,959,961,967,968,974],{"type":39,"tag":74,"props":947,"children":948},{},[949],{"type":44,"value":950},"Async-aware check from jslib",{"type":44,"value":952},":\n",{"type":39,"tag":58,"props":954,"children":956},{"className":955},[],[957],{"type":44,"value":958},"import { check } from 'https:\u002F\u002Fjslib.k6.io\u002Fk6-utils\u002F1.5.0\u002Findex.js'",{"type":44,"value":960}," -- then\npredicates can be ",{"type":39,"tag":58,"props":962,"children":964},{"className":963},[],[965],{"type":44,"value":966},"async",{"type":44,"value":250},{"type":39,"tag":58,"props":969,"children":971},{"className":970},[],[972],{"type":44,"value":973},"await",{"type":44,"value":975}," inside them works.",{"type":39,"tag":70,"props":977,"children":978},{},[979,984,985,991,993,999,1000,1005],{"type":39,"tag":74,"props":980,"children":981},{},[982],{"type":44,"value":983},"Resolve the value before the check",{"type":44,"value":952},{"type":39,"tag":58,"props":986,"children":988},{"className":987},[],[989],{"type":44,"value":990},"const text = await page.locator('h1').textContent(); check(text, { ... })",{"type":44,"value":992}," --\nkeeps the standard sync ",{"type":39,"tag":58,"props":994,"children":996},{"className":995},[],[997],{"type":44,"value":998},"check",{"type":44,"value":917},{"type":39,"tag":58,"props":1001,"children":1003},{"className":1002},[],[1004],{"type":44,"value":291},{"type":44,"value":350},{"type":39,"tag":47,"props":1007,"children":1008},{},[1009],{"type":44,"value":1010},"When you hit this during any workflow (migration, refactor, audit), flag it as a\nbehavioral bug and propose one of these fixes.",{"type":39,"tag":122,"props":1012,"children":1014},{"id":1013},"script-sources",[1015],{"type":44,"value":1016},"Script sources",{"type":39,"tag":134,"props":1018,"children":1019},{},[1020,1037],{"type":39,"tag":70,"props":1021,"children":1022},{},[1023,1028,1030,1035],{"type":39,"tag":74,"props":1024,"children":1025},{},[1026],{"type":44,"value":1027},"GCk6-hosted",{"type":44,"value":1029}," -- fetched and pushed via ",{"type":39,"tag":58,"props":1031,"children":1033},{"className":1032},[],[1034],{"type":44,"value":216},{"type":44,"value":1036}," §5 (GET → backup → edit →\nvalidate → PUT → verify sha256).",{"type":39,"tag":70,"props":1038,"children":1039},{},[1040,1045],{"type":39,"tag":74,"props":1041,"children":1042},{},[1043],{"type":44,"value":1044},"Local on disk",{"type":44,"value":1046}," -- read and edit directly. Validate before presenting.",{"type":39,"tag":47,"props":1048,"children":1049},{},[1050],{"type":44,"value":1051},"Determine the source before starting: a GCk6 test URL or ID is cloud-hosted; a\nfile path is local.",{"type":39,"tag":122,"props":1053,"children":1055},{"id":1054},"workflows",[1056],{"type":44,"value":1057},"Workflows",{"type":39,"tag":47,"props":1059,"children":1060},{},[1061,1063,1071],{"type":44,"value":1062},"Full procedures are in ",{"type":39,"tag":53,"props":1064,"children":1065},{"href":55},[1066],{"type":39,"tag":58,"props":1067,"children":1069},{"className":1068},[],[1070],{"type":44,"value":55},{"type":44,"value":64},{"type":39,"tag":134,"props":1073,"children":1074},{},[1075,1088,1101,1114,1127],{"type":39,"tag":70,"props":1076,"children":1077},{},[1078,1086],{"type":39,"tag":74,"props":1079,"children":1080},{},[1081],{"type":39,"tag":53,"props":1082,"children":1084},{"href":1083},"references\u002Fworkflows.md#threshold-tightening",[1085],{"type":44,"value":78},{"type":44,"value":1087}," --\npropose values with observed-metric justification, diff, apply, Class A verify.",{"type":39,"tag":70,"props":1089,"children":1090},{},[1091,1099],{"type":39,"tag":74,"props":1092,"children":1093},{},[1094],{"type":39,"tag":53,"props":1095,"children":1097},{"href":1096},"references\u002Fworkflows.md#version-migration",[1098],{"type":44,"value":88},{"type":44,"value":1100}," -- find\ndeprecated\u002Frenamed APIs, classify syntactic vs behavioral, apply, Class B verify.",{"type":39,"tag":70,"props":1102,"children":1103},{},[1104,1112],{"type":39,"tag":74,"props":1105,"children":1106},{},[1107],{"type":39,"tag":53,"props":1108,"children":1110},{"href":1109},"references\u002Fworkflows.md#service-change-adaptation",[1111],{"type":44,"value":98},{"type":44,"value":1113},"\n-- map each service change to a script change, propose fixes, Class B verify.",{"type":39,"tag":70,"props":1115,"children":1116},{},[1117,1125],{"type":39,"tag":74,"props":1118,"children":1119},{},[1120],{"type":39,"tag":53,"props":1121,"children":1123},{"href":1122},"references\u002Fworkflows.md#refactoring",[1124],{"type":44,"value":108},{"type":44,"value":1126}," -- find issues,\nauto-apply syntactic, propose behavioral, Class B verify after confirmation.",{"type":39,"tag":70,"props":1128,"children":1129},{},[1130,1138],{"type":39,"tag":74,"props":1131,"children":1132},{},[1133],{"type":39,"tag":53,"props":1134,"children":1136},{"href":1135},"references\u002Fworkflows.md#best-practices-audit",[1137],{"type":44,"value":118},{"type":44,"value":1139}," --\ndoc-driven audit across thresholds, load design, resource management, code\nquality, and browser specifics.",{"type":39,"tag":47,"props":1141,"children":1142},{},[1143],{"type":44,"value":1144},"All five follow behavior-aware change control: auto-apply syntactic changes,\npresent behavioral ones as diffs for confirmation.",{"type":39,"tag":122,"props":1146,"children":1148},{"id":1147},"gotchas",[1149],{"type":44,"value":1150},"Gotchas",{"type":39,"tag":522,"props":1152,"children":1153},{},[1154,1170],{"type":39,"tag":526,"props":1155,"children":1156},{},[1157],{"type":39,"tag":530,"props":1158,"children":1159},{},[1160,1165],{"type":39,"tag":534,"props":1161,"children":1162},{},[1163],{"type":44,"value":1164},"Issue",{"type":39,"tag":534,"props":1166,"children":1167},{},[1168],{"type":44,"value":1169},"Detail",{"type":39,"tag":550,"props":1171,"children":1172},{},[1173,1197,1213,1237,1275,1296],{"type":39,"tag":530,"props":1174,"children":1175},{},[1176,1184],{"type":39,"tag":557,"props":1177,"children":1178},{},[1179],{"type":39,"tag":74,"props":1180,"children":1181},{},[1182],{"type":44,"value":1183},"Cloud script format",{"type":39,"tag":557,"props":1185,"children":1186},{},[1187,1189,1195],{"type":44,"value":1188},"GCk6 scripts can be single files or tar archives. Detect with ",{"type":39,"tag":58,"props":1190,"children":1192},{"className":1191},[],[1193],{"type":44,"value":1194},"file(1)",{"type":44,"value":1196}," before editing (see k6-manage §5).",{"type":39,"tag":530,"props":1198,"children":1199},{},[1200,1208],{"type":39,"tag":557,"props":1201,"children":1202},{},[1203],{"type":39,"tag":74,"props":1204,"children":1205},{},[1206],{"type":44,"value":1207},"Zero-observation thresholds",{"type":39,"tag":557,"props":1209,"children":1210},{},[1211],{"type":44,"value":1212},"A threshold on a metric with no observations passes by default. When adding new thresholds, ensure the metric is actually emitted by the test.",{"type":39,"tag":530,"props":1214,"children":1215},{},[1216,1224],{"type":39,"tag":557,"props":1217,"children":1218},{},[1219],{"type":39,"tag":74,"props":1220,"children":1221},{},[1222],{"type":44,"value":1223},"abortOnFail cascades",{"type":39,"tag":557,"props":1225,"children":1226},{},[1227,1229,1235],{"type":44,"value":1228},"If a threshold has ",{"type":39,"tag":58,"props":1230,"children":1232},{"className":1231},[],[1233],{"type":44,"value":1234},"abortOnFail: true",{"type":44,"value":1236},", tightening it means runs abort earlier. Warn the user.",{"type":39,"tag":530,"props":1238,"children":1239},{},[1240,1248],{"type":39,"tag":557,"props":1241,"children":1242},{},[1243],{"type":39,"tag":74,"props":1244,"children":1245},{},[1246],{"type":44,"value":1247},"Browser script validation",{"type":39,"tag":557,"props":1249,"children":1250},{},[1251,1253,1259,1261,1266,1268,1273],{"type":44,"value":1252},"Browser scripts can't be validated with ",{"type":39,"tag":58,"props":1254,"children":1256},{"className":1255},[],[1257],{"type":44,"value":1258},"k6 run --iterations 1",{"type":44,"value":1260}," without a browser. Use ",{"type":39,"tag":58,"props":1262,"children":1264},{"className":1263},[],[1265],{"type":44,"value":301},{"type":44,"value":1267}," for parse-only validation, or ",{"type":39,"tag":58,"props":1269,"children":1271},{"className":1270},[],[1272],{"type":44,"value":248},{"type":44,"value":1274}," via mcp-k6.",{"type":39,"tag":530,"props":1276,"children":1277},{},[1278,1286],{"type":39,"tag":557,"props":1279,"children":1280},{},[1281],{"type":39,"tag":74,"props":1282,"children":1283},{},[1284],{"type":44,"value":1285},"k6 x docs version alignment",{"type":39,"tag":557,"props":1287,"children":1288},{},[1289,1294],{"type":39,"tag":58,"props":1290,"children":1292},{"className":1291},[],[1293],{"type":44,"value":264},{"type":44,"value":1295}," serves docs for the installed k6 version; when migrating to a newer version, local docs may not reflect the target API. Note this in migration lookups.",{"type":39,"tag":530,"props":1297,"children":1298},{},[1299,1307],{"type":39,"tag":557,"props":1300,"children":1301},{},[1302],{"type":39,"tag":74,"props":1303,"children":1304},{},[1305],{"type":44,"value":1306},"Script drift after edit",{"type":39,"tag":557,"props":1308,"children":1309},{},[1310],{"type":44,"value":1311},"After pushing a cloud-hosted script, the next run uses the new version, but historical runs keep their bundled snapshot. To investigate a past failure, compare the run-bundled script (read-only), not the current one.",{"type":39,"tag":122,"props":1313,"children":1315},{"id":1314},"references",[1316],{"type":44,"value":1317},"References",{"type":39,"tag":134,"props":1319,"children":1320},{},[1321,1334],{"type":39,"tag":70,"props":1322,"children":1323},{},[1324,1332],{"type":39,"tag":53,"props":1325,"children":1326},{"href":55},[1327],{"type":39,"tag":58,"props":1328,"children":1330},{"className":1329},[],[1331],{"type":44,"value":55},{"type":44,"value":1333}," -- step-by-step procedures for the five maintenance tasks",{"type":39,"tag":70,"props":1335,"children":1336},{},[1337,1345],{"type":39,"tag":53,"props":1338,"children":1339},{"href":387},[1340],{"type":39,"tag":58,"props":1341,"children":1343},{"className":1342},[],[1344],{"type":44,"value":387},{"type":44,"value":1346}," -- per-class post-edit verification recipes",{"type":39,"tag":1348,"props":1349,"children":1350},"style",{},[1351],{"type":44,"value":1352},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1354,"total":1543},[1355,1376,1395,1415,1430,1446,1459,1472,1489,1504,1517,1531],{"slug":1356,"name":1356,"fn":1357,"description":1358,"org":1359,"tags":1360,"stars":1373,"repoUrl":1374,"updatedAt":1375},"faro-setup-web","instrument web apps with Grafana Faro","Instruments a web app with Grafana Faro Web SDK for frontend observability. Use when setting up error tracking, Web Vitals, session monitoring, or distributed tracing in a browser app.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1361,1364,1367,1370],{"name":1362,"slug":1363,"type":15},"Distributed Tracing","distributed-tracing",{"name":1365,"slug":1366,"type":15},"Frontend","frontend",{"name":1368,"slug":1369,"type":15},"Monitoring","monitoring",{"name":1371,"slug":1372,"type":15},"Observability","observability",1103,"https:\u002F\u002Fgithub.com\u002Fgrafana\u002Ffaro-web-sdk","2026-07-12T07:43:24.63314",{"slug":1377,"name":1377,"fn":1378,"description":1379,"org":1380,"tags":1381,"stars":1392,"repoUrl":1393,"updatedAt":1394},"configuring-yesoreyeram-infinity-datasource","configure Grafana Infinity data source","Configure the Infinity data source — base URL and allowed hosts, the authentication methods (basic, bearer token, API key, digest, OAuth passthrough, OAuth 2.0 client credentials\u002FJWT, Azure, Azure Blob, AWS), TLS, custom HTTP headers, network and security settings, the custom health check, and provisioning with a config file. Use when a user asks how to set up, configure, or change settings for the Infinity data source; how to authenticate to an API; how to allow hosts; how to provision it as YAML; or how to troubleshoot connection, authentication, or health-check issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1382,1385,1388,1391],{"name":1383,"slug":1384,"type":15},"API Development","api-development",{"name":1386,"slug":1387,"type":15},"Authentication","authentication",{"name":1389,"slug":1390,"type":15},"Configuration","configuration",{"name":9,"slug":8,"type":15},1056,"https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fgrafana-infinity-datasource","2026-07-12T07:43:25.939136",{"slug":1396,"name":1396,"fn":1397,"description":1398,"org":1399,"tags":1400,"stars":1392,"repoUrl":1393,"updatedAt":1414},"querying-yesoreyeram-infinity-datasource","query data with Infinity datasource","Build queries with the Infinity data source — the query types (JSON, CSV, TSV, XML, GraphQL, HTML, UQL, GROQ, Google Sheets, Series, Transformations), the parsers (Frontend\u002Fsimple, Backend JSONata, JQ, UQL, GROQ) and which support alerting, the sources (URL, Inline, Reference, Azure Blob, Random walk), output formats (table, timeseries, logs, trace, node graph, dataframe), root selector and columns, computed columns\u002Ffilters\u002Fsummarize, pagination, and template variables. Use when a user asks how to query Infinity; how to fetch JSON\u002FCSV\u002FXML\u002FGraphQL\u002FHTML from a URL or inline; how to select rows and columns; how to transform data with UQL\u002FGROQ\u002FJSONata\u002FJQ; how to make a query work with alerting; how to paginate; or how to use variables in a query.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1401,1404,1407,1408,1411],{"name":1402,"slug":1403,"type":15},"CSV","csv",{"name":1405,"slug":1406,"type":15},"Data Analysis","data-analysis",{"name":9,"slug":8,"type":15},{"name":1409,"slug":1410,"type":15},"GraphQL","graphql",{"name":1412,"slug":1413,"type":15},"JSON","json","2026-07-15T05:34:05.773947",{"slug":1416,"name":1416,"fn":1417,"description":1418,"org":1419,"tags":1420,"stars":1427,"repoUrl":1428,"updatedAt":1429},"agento11y","manage Grafana Agent Observability resources","Inspects and manages Grafana Agent Observability resources via gcx: conversations, generations, evaluators, rules, scores, and templates. Use when the user wants to list or search conversations, inspect generations, manage evaluators (upsert, test, delete), set up evaluation rules, check scores, or browse evaluator templates. Trigger on phrases like \"list conversations\", \"search generations\", \"what did the agent do\", \"debug LLM conversation\", \"create evaluator\", \"set up evaluation rule\", \"test evaluator\", \"check scores\", \"evaluate generation quality\", or \"set up online evaluation\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1421,1424,1425,1426],{"name":1422,"slug":1423,"type":15},"Agents","agents",{"name":9,"slug":8,"type":15},{"name":1368,"slug":1369,"type":15},{"name":1371,"slug":1372,"type":15},430,"https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fgcx","2026-07-25T05:30:40.29622",{"slug":1431,"name":1431,"fn":1432,"description":1433,"org":1434,"tags":1435,"stars":1427,"repoUrl":1428,"updatedAt":1445},"agento11y-instrument","instrument LLM apps for agent observability","Sets up and instruments a developer's own LLM app or agent to send generations and agentic workflow to Grafana Agent Observability (the Agent Observability SDKs) — greenfield setup, fixing broken instrumentation, or filling gaps in existing instrumentation. Uses gcx for the parts a static prompt can't do: `gcx login` \u002F `gcx cloud stacks` to find the stack, and `gcx agento11y agents|conversations|generations` to VERIFY that data actually lands — so it iterates (instrument → run → verify → fix) until generations arrive, not blindly. Reads the app's code, detects language\u002Fframework, classifies instrumentation state (none \u002F partial \u002F broken), then runs a fixed gap checklist whose #1 item is the silent failure no other prompt catches: the SDK emits OTel spans\u002Fmetrics but never creates a TracerProvider\u002FMeterProvider, so without them all metrics go to a no-op and are lost. Also checks agent_version (required for per-version Performance charts), set_result completeness, SYNC vs STREAM, parent_generation_ids DAG links, and workflow-step coverage. Recommends changes citing file:line and, only with explicit confirmation, applies minimal diffs that don't change app behavior. Pulls SDK reference from agento11y's llms.txt rather than restating it, and hands off to `agento11y-test-starter` once data flows. It does NOT write test suites or set up tenant evaluations, rules, or guards — offline test suites are `agento11y-test-starter`, tenant eval rules + guards are `agento11y-prod-setup`; does NOT install coding-agent telemetry plugins (that is llms.txt \"Path A\"); does NOT mint or store credentials or invent endpoints. Trigger on phrases like \"instrument my app\", \"send my agent's traces to Grafana\", \"set up AI observability for my app\", \"my generations aren't showing up\", \"why is Performance empty\", \"add Agent Observability to my code\", \"fix my instrumentation\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1436,1437,1438,1441,1444],{"name":1422,"slug":1423,"type":15},{"name":9,"slug":8,"type":15},{"name":1439,"slug":1440,"type":15},"Instrumentation","instrumentation",{"name":1442,"slug":1443,"type":15},"LLM","llm",{"name":1371,"slug":1372,"type":15},"2026-07-31T05:53:52.580237",{"slug":1447,"name":1447,"fn":1448,"description":1449,"org":1450,"tags":1451,"stars":1427,"repoUrl":1428,"updatedAt":1458},"agento11y-prod-setup","setup production evaluation for AI agents","Sets up production evaluation and guardrails for a DEPLOYED AI agent in Grafana Agent Observability, grounded in the agent's own code and its real ingested traffic. The judgment layer on top of the `agento11y` skill: it reads the agent's source (system prompt, tools, entrypoint) AND samples its live traffic via gcx, checks what evaluators\u002Frules\u002Fguards already exist, then recommends only what's missing — online eval rules (score live conversations for regressions) and guards (warn-first request-path policies that redact \u002F tool-filter and may later be promoted to deny). It drafts reviewable YAML and, only with explicit confirmation, applies via `gcx agento11y`. New guards are drafted in warn mode (safe on live traffic — warn records but never blocks). It DOES create stack-level objects — that is the point — but every write is confirmed. It never rewrites or redeploys the agent. Trigger on phrases like \"set up production evaluation\", \"my agent is in prod what should I evaluate\", \"catch quality regressions\", \"add guardrails to my agent\", \"redact PII from my agent\", \"block dangerous tools\", \"set up online evals and guards\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1452,1453,1456,1457],{"name":1422,"slug":1423,"type":15},{"name":1454,"slug":1455,"type":15},"Evals","evals",{"name":9,"slug":8,"type":15},{"name":1371,"slug":1372,"type":15},"2026-07-31T05:53:53.576347",{"slug":1460,"name":1460,"fn":1461,"description":1462,"org":1463,"tags":1464,"stars":1427,"repoUrl":1428,"updatedAt":1471},"agento11y-test-starter","build and run agent test suites","Use early in an AI-agent project — before ship, before real traffic — to build a starter test suite for the agent and run it offline. Reads the agent's own code (system prompt, tools, task), writes a labeled draft suite of test cases (happy\u002Fedge\u002Fadversarial) grounded in real lines, and recommends how to score each case (the evaluators\u002Fjudges the offline runner uses). Assesses how runnable the agent is: for an easily-invoked agent it generates a runner stub (run_experiment.py) with two holes to fill and can optionally run it (only with permission, only against the endpoint the developer configured); for agents needing a harness or full runtime it points to the existing eval infra. It runs OFFLINE and never creates tenant-level evaluators, rules, or guards — that is `agento11y-prod-setup`, for a deployed agent with real traffic. Trigger on phrases like \"how do I test my agent before shipping\", \"write test cases for my agent\", \"set up tests for my agent\", \"check my agent before prod\", \"I have no traffic yet, how do I evaluate it\", \"test my agent offline\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1465,1466,1467,1470],{"name":1422,"slug":1423,"type":15},{"name":9,"slug":8,"type":15},{"name":1468,"slug":1469,"type":15},"QA","qa",{"name":21,"slug":22,"type":15},"2026-07-31T05:53:51.62785",{"slug":1473,"name":1473,"fn":1474,"description":1475,"org":1476,"tags":1477,"stars":1427,"repoUrl":1428,"updatedAt":1488},"create-dashboard","create Grafana dashboards with gcx","Designs and creates Grafana dashboards with gcx, using `gcx dashboards snapshot` as a visual feedback loop. Use when the user wants to create a new Grafana dashboard, add panels, variables, or annotations to an existing dashboard, design dashboard panels, variables, queries, or layout, or make a material visual redesign. Triggers on \"create dashboard\", \"new dashboard\", \"build dashboard\", \"dashboard for \u003Cservice>\", \"add panels\", \"add variable\", \"add annotation\", \"improve this dashboard\", or \"iterate on a dashboard\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1478,1481,1484,1487],{"name":1479,"slug":1480,"type":15},"Dashboards","dashboards",{"name":1482,"slug":1483,"type":15},"Data Visualization","data-visualization",{"name":1485,"slug":1486,"type":15},"Design","design",{"name":9,"slug":8,"type":15},"2026-07-25T05:30:46.289717",{"slug":1490,"name":1490,"fn":1491,"description":1492,"org":1493,"tags":1494,"stars":1427,"repoUrl":1428,"updatedAt":1503},"debug-with-grafana","investigate application issues with Grafana","Structured workflow for investigating application problems with Grafana observability data (metrics, logs, traces) via gcx. Covers live firefighting AND retrospective incident analysis: incident triage, root-cause analysis, blast-radius checks (did an incident spill into other services), verifying whether a deployment or rollout triggered an incident, finding which service, endpoint, or path owns the most errors or slow requests, checking whether retries or queue backlogs piled up, and quantifying error or latency shares over a time window. Trigger on: \"my API is returning 500 errors\", \"latency is spiking\", \"investigate why requests are failing\", \"triage the incident\", \"blast radius\", \"root cause\", \"did the rollout cause it\", \"which endpoint owns the most 5xx\", \"did retries pile up\", or any request to analyse an earlier incident window using telemetry. For authoring dashboards use create-dashboard; for dashboard inventory use manage-dashboards.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1495,1498,1499,1502],{"name":1496,"slug":1497,"type":15},"Debugging","debugging",{"name":9,"slug":8,"type":15},{"name":1500,"slug":1501,"type":15},"Incident Response","incident-response",{"name":1371,"slug":1372,"type":15},"2026-07-18T05:11:10.445428",{"slug":1505,"name":1505,"fn":1506,"description":1507,"org":1508,"tags":1509,"stars":1427,"repoUrl":1428,"updatedAt":1516},"diagnose-entity-graph","diagnose Grafana Entity Graph issues","Diagnose Entity Graph problems: missing entities, missing edges, disconnected clusters, or filtering issues. Use when the user reports that Entity Graph doesn't look right, services are missing, edges aren't appearing, or environments can't be filtered. Triggers for: \"entity graph is empty\", \"services missing from entity graph\", \"no edges in entity graph\", \"disconnected services\", \"can't filter entity graph\", \"entity graph not working\", \"diagnose entity graph\", \"debug knowledge graph\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1510,1511,1512,1515],{"name":1496,"slug":1497,"type":15},{"name":9,"slug":8,"type":15},{"name":1513,"slug":1514,"type":15},"Graph Analysis","graph-analysis",{"name":1371,"slug":1372,"type":15},"2026-07-25T05:30:39.380934",{"slug":230,"name":230,"fn":1518,"description":1519,"org":1520,"tags":1521,"stars":1427,"repoUrl":1428,"updatedAt":1530},"manage Grafana Cloud resources via gcx","Manages Grafana Cloud resources via the gcx CLI. Trigger when the user wants to inspect, create, update, delete, query, or automate any Grafana resource - dashboards, datasources, alerts, SLOs, synthetic checks, oncall, incidents, fleet, k6, knowledge graph, or adaptive telemetry.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1522,1525,1526,1527],{"name":1523,"slug":1524,"type":15},"CLI","cli",{"name":9,"slug":8,"type":15},{"name":1368,"slug":1369,"type":15},{"name":1528,"slug":1529,"type":15},"Operations","operations","2026-07-31T05:53:50.587304",{"slug":1532,"name":1532,"fn":1533,"description":1534,"org":1535,"tags":1536,"stars":1427,"repoUrl":1428,"updatedAt":1542},"gcx-demo","present gcx demo tours","Run a narrated, read-only demo tour of gcx for customer or colleague presentations. Showcases the breadth of gcx across every Grafana Cloud product area — resources, datasources, metrics, logs, traces, SLOs, alerts, synthetic monitoring, IRM, k6, fleet, and more. All commands are strictly read-only. Trigger when the user says \"demo gcx\", \"show off gcx\", \"customer demo\", \"gcx tour\", or \"\u002Fgcx-demo\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1537,1538,1539],{"name":1523,"slug":1524,"type":15},{"name":9,"slug":8,"type":15},{"name":1540,"slug":1541,"type":15},"Presentations","presentations","2026-07-25T05:30:45.282458",80,{"items":1545,"total":1650},[1546,1561,1576,1592,1605,1621,1635],{"slug":1547,"name":1547,"fn":1548,"description":1549,"org":1550,"tags":1551,"stars":23,"repoUrl":24,"updatedAt":1560},"adaptive-metrics","optimize Grafana Cloud metrics costs","Cut Grafana Cloud Metrics cost by shrinking active-series count with Adaptive Metrics aggregation rules — auto-recommendations from query history, custom exact\u002Fregex rules, label-drop config, unused-metric detection, and Alloy remote_write fallback. Use when investigating a high Mimir\u002FGrafana Cloud bill, hunting high-cardinality labels (`pod_uid`, `service_instance_id`, `version`), pre-aggregating counters\u002Fgauges, dropping unused metrics, or measuring `grafanacloud_instance_active_series` before\u002Fafter — even when the user says \"reduce cardinality\", \"too many series\", \"metrics spend\", \"active series count is exploding\", or \"drop the version label\" without naming Adaptive Metrics.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1552,1555,1556,1559],{"name":1553,"slug":1554,"type":15},"Cost Optimization","cost-optimization",{"name":9,"slug":8,"type":15},{"name":1557,"slug":1558,"type":15},"Metrics","metrics",{"name":1371,"slug":1372,"type":15},"2026-07-12T07:44:27.451068",{"slug":1562,"name":1562,"fn":1563,"description":1564,"org":1565,"tags":1566,"stars":23,"repoUrl":24,"updatedAt":1575},"admin","manage Grafana Cloud accounts and RBAC","Manage Grafana Cloud accounts — organizations, stacks, RBAC roles and assignments, SSO\u002FSAML\u002FOAuth\u002FGitHub auth, service accounts for CI\u002FCD, user invites, team membership, and API-driven provisioning. Creates stacks via the Cloud API, mints service-account tokens, applies role assignments, configures SSO providers, and provisions teams\u002Ffolders\u002Fdashboards via Terraform. Use when managing Grafana Cloud access, configuring SSO\u002FSAML\u002FOAuth, setting up service accounts for Terraform\u002FCI\u002FCD, assigning RBAC roles, inviting users, managing multiple stacks or organizations, provisioning cloud resources via API or Terraform, or auditing admin actions — even when the user says \"set up SSO\", \"create a stack\", \"make a service account\", or \"onboard a team\" without explicitly saying \"admin\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1567,1570,1573,1574],{"name":1568,"slug":1569,"type":15},"Access Control","access-control",{"name":1571,"slug":1572,"type":15},"Auth","auth",{"name":9,"slug":8,"type":15},{"name":1528,"slug":1529,"type":15},"2026-07-12T07:44:12.078436",{"slug":1577,"name":1577,"fn":1578,"description":1579,"org":1580,"tags":1581,"stars":23,"repoUrl":24,"updatedAt":1591},"admission-control","implement admission control webhooks","Use when the user asks to \"write a validator\", \"add validation\", \"implement admission control\", \"write a mutating webhook\", \"add a mutation handler\", \"validate incoming resources\", \"implement admission logic\", \"add admission webhooks\", \"write ingress validation\", or asks how to validate or mutate resources before they are persisted in a grafana-app-sdk app. Provides guidance on implementing validation and mutation admission handlers for grafana-app-sdk apps.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1582,1585,1588],{"name":1583,"slug":1584,"type":15},"Architecture","architecture",{"name":1586,"slug":1587,"type":15},"Security","security",{"name":1589,"slug":1590,"type":15},"Validation","validation","2026-07-12T07:45:06.148973",{"slug":1593,"name":1593,"fn":1594,"description":1595,"org":1596,"tags":1597,"stars":23,"repoUrl":24,"updatedAt":1604},"alerting-irm","configure Grafana Alerting and Incident Management","Configure Grafana Alerting, Incident Response Management (IRM), and SLOs end-to-end — provisions Grafana-managed and data-source-managed alert rules, contact points (Slack\u002FPagerDuty\u002Femail\u002Fwebhook), notification policies with hierarchical matchers, silences, mute timings, on-call schedules and escalation chains, incident-management integrations, and SLOs with multi-window burn-rate alerts. Use when configuring alerts, debugging notification routing, setting up on-call rotations, declaring or managing incidents, defining SLOs, provisioning alerting via YAML or API, picking matchers for a notification policy, building a PagerDuty\u002FSlack webhook receiver, or troubleshooting why an alert isn't firing — even when the user says \"page me on errors\", \"alert me when X happens\", \"route this to the platform team\", or \"set up an SLO\" without naming Alerting or IRM.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1598,1601,1602,1603],{"name":1599,"slug":1600,"type":15},"Alerting","alerting",{"name":9,"slug":8,"type":15},{"name":1500,"slug":1501,"type":15},{"name":1368,"slug":1369,"type":15},"2026-07-12T07:44:02.393397",{"slug":1606,"name":1606,"fn":1607,"description":1608,"org":1609,"tags":1610,"stars":23,"repoUrl":24,"updatedAt":1620},"alloy","build unified telemetry pipelines with Grafana Alloy","Build a unified telemetry pipeline with Grafana Alloy — one OpenTelemetry-compatible binary that collects metrics, logs, traces, and profiles and ships to Grafana Cloud \u002F Prometheus \u002F Loki \u002F Tempo \u002F Pyroscope. Covers the Alloy config language (blocks, `sys.env`, component refs), `prometheus.scrape` → `remote_write`, `loki.source.file` + `loki.process` → `loki.write`, `otelcol.receiver.otlp` → `otelcol.exporter.otlp`, `pyroscope.scrape`, K8s \u002F Docker \u002F EC2 discovery, relabeling, modules (`import.file\u002Fgit\u002Fhttp`), clustering, Fleet Management `remotecfg`, the Alloy UI at `:12345`, and `alloy fmt` \u002F `alloy validate`. Use when writing a `config.alloy`, replacing Grafana Agent \u002F OTel Collector, scraping K8s pods, parsing logs, ingesting OTLP, or debugging \"Alloy isn't sending anything\" — even when the user says \"set up the agent\", \"write me a scrape config\", \"drop these logs before sending\", or \"OTel collector config\" without naming Alloy.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1611,1612,1615,1616,1617],{"name":9,"slug":8,"type":15},{"name":1613,"slug":1614,"type":15},"Logs","logs",{"name":1557,"slug":1558,"type":15},{"name":1371,"slug":1372,"type":15},{"name":1618,"slug":1619,"type":15},"OpenTelemetry","opentelemetry","2026-07-12T07:43:54.817139",{"slug":1622,"name":1622,"fn":1623,"description":1624,"org":1625,"tags":1626,"stars":23,"repoUrl":24,"updatedAt":1634},"app-observability","monitor application performance in Grafana Cloud","Get RED metrics + service maps + frontend RUM + AI\u002FLLM monitoring out of Grafana Cloud — Application Observability (`traces_spanmetrics_*` from OTel traces, p50\u002Fp95\u002Fp99 latency, exemplar-to-trace, traces-to-logs \u002F profiles), Frontend Observability with the Faro Web SDK (Core Web Vitals, session replay, `pushError`, React + router integration, `TracingInstrumentation` for browser → backend trace correlation), and AI Observability via OpenLIT (token \u002F cost \u002F latency, GPU, hallucination + toxicity evals). Use when standing up APM for a service, wiring an Alloy OTLP receiver + forwarding to Cloud, instrumenting a React frontend for RUM, debugging why service-map edges are missing, monitoring LLM cost drift, or correlating a frontend error to its backend trace — even when the user says \"set up APM\", \"show service map\", \"monitor browser perf\", \"session replay\", \"RUM SDK\", or \"watch our OpenAI bill\" without naming App \u002F Frontend \u002F AI Observability.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1627,1630,1631,1632,1633],{"name":1628,"slug":1629,"type":15},"APM","apm",{"name":1362,"slug":1363,"type":15},{"name":9,"slug":8,"type":15},{"name":1442,"slug":1443,"type":15},{"name":1371,"slug":1372,"type":15},"2026-07-12T07:44:34.500406",{"slug":1636,"name":1636,"fn":1637,"description":1638,"org":1639,"tags":1640,"stars":23,"repoUrl":24,"updatedAt":1649},"app-sdk-concepts","scaffold and configure Grafana apps","Use when starting any grafana-app-sdk work — scaffolding a Grafana app, initializing a Grafana App Platform app, picking a deployment mode (standalone operator \u002F grafana\u002Fapps \u002F frontend-only), wiring app-specific config, or onboarding to the SDK. Covers `grafana-app-sdk` CLI install, `project init` per deployment mode, project layout, the schema-centric workflow (CUE kinds → generated code → reconciler\u002Fadmission logic), and `SpecificConfig` for env-driven app configuration. Use even if the user just says \"make a new app\", \"Grafana app platform\", \"kinds and watchers\", \"operator scaffold\", or asks about `apps\u002F` inside the Grafana repo, without naming the SDK explicitly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1641,1642,1645,1648],{"name":1583,"slug":1584,"type":15},{"name":1643,"slug":1644,"type":15},"Deployment","deployment",{"name":1646,"slug":1647,"type":15},"Engineering","engineering",{"name":9,"slug":8,"type":15},"2026-07-12T07:45:08.595757",48]