An observability platform for dashboards, metrics, logs, and alerting.
On this page
Overview
Grafana's root guide maps its Go and TypeScript monorepo and points specialized work to local instructions and testing skills. Schema and service edits have generators; PATH and test-runner behavior vary by environment.
Derive change boundaries from deployment boundaries
Frontend and backend changes are assigned separate PRs because they ship on different cadences. The storage notes extend that reasoning to independently deployed services that need compatibility in both directions.
Source excerpt starting at line 25.
25- Separate PRs for frontend and backend changes (deployed at different cadences)
02 / Router files
Route visualization tests through an additional guide
All frontend testing follows one skill, with panel and visualization code loading another on top. The shared guide defines the default and the specialization without treating every frontend change identically.
Source excerpt starting at line 21.
21- Write tests for new functionality — for frontend code, use the `frontend-testing-strategy`22 skill for this repo's testing conventions (and `panel-testing-strategy` on top of it for23 visualization/panel code)
03 / Generated file guards
Tie schema changes to both generated languages
The CUE schema note explains that a schema edit produces Go and TypeScript output. Service initialization, feature flags, and Go workspace membership have their own named generation commands.
Source excerpt starting at line 143.
143- **CUE schemas**: Dashboard/panel schemas in `kinds/` generate both Go and TS code via `make gen-cue`.
04 / Behavioral framing
Turn an interactive test default into a one-shot command
The cloud-environment section warns that the normal frontend test command watches by default. It provides both a direct Jest invocation and a flag that let an automated run terminate.
Source excerpt starting at line 170.
170- **Frontend tests**: The `yarn test` script includes `--watch` by default. Always use `yarn jest --no-watch` or add `--watchAll=false` to run tests once and exit.
Ideas for your repo
01Explain how deployment cadence constrains the scope of a change.
02Layer specialized test guides on top of shared ones.
03Name every language affected by schema generation.
04Document interactive command defaults that would leave automated work waiting.
Sponsored by
Give your agents the whole story.
These instructions explain how to work in Grafana. Modem shows your agents what customers said, who is affected, and what changed.