The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
github.com/grafana/grafanaIndexed at b010d25Up to date with upstreamRefreshes weekly
18,146 files and 87,932 symbols in 18 modules, led by TypeScript (8,674 files) and Go (5,321).
Built from the index
Code health
This codebase scores 7.9 out of 10 for code health, which we rate good. It also scores maintainability 8.7 and static performance 9.9 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 1,202 of 18,146 files are git hotspots, and they average 5.3 — which is where the fixes pay off most.
On the leaderboards:#11 of 38 TypeScript repos
5 things worth doing this quarter.
Break up slice2Bean (CCN 119, 411 lines)
pkg/util/xorm/session.go:341
slice2Bean nests its control flow deeply; 104 files import it.
Break up buildConds (CCN 70, 190 lines)
pkg/util/xorm/engine_cond.go:38
buildConds nests its control flow deeply; 84 files import it.
Update the decision “Unify KV regex acceptance with Grafana API validators”: the code it governs has moved on
Agents and reviewers still follow it, so they are steered by a rule the code no longer keeps.
Point Claude Code, Cursor, Codex or VS Code at this repository. Your agent gets the index this page is built from: cited answers, callers, history and health for any file.
https://api.repowise.dev/mcp/grafana/grafanaOne command, run anywhere. Adds the server to your local Claude Code config.
Docsclaude mcp add --transport http repowise https://api.repowise.dev/mcp/grafana/grafana \ --header "Authorization: Bearer rw_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
This repo is public, so anyone with a Repowise account and an API key can connect.
Try asking
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed.
Sign in with GitHub and we check that you are an admin or maintainer of grafana/grafana. Then add a badge to the README that links readers here.
Add this URL as a custom connector and sign in with repowise when asked. No API key to copy.
https://api.repowise.dev/mcp/grafana/grafanaFor maintainers
Every badge is public, cached, and updates on its own after every index. Nothing to install.
Links to this page, with no score on it. Adding it also re-indexes the repo every week.
[](https://repowise.dev/repo/grafana/grafana?src=badge_wiki)The repo's health score out of 10, from the latest index.
[](https://repowise.dev/repo/grafana/grafana?src=badge_health)A larger card with the score, its change since the last index, and when it was measured. The HTML version follows the reader's light or dark theme.
[](https://repowise.dev/repo/grafana/grafana?src=badge_card)The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more. This page is a map of the grafana/grafana repository, written primarily in TypeScript, rebuilt from the source each time it is indexed. Repowise parses every symbol, computes a dependency graph, scores per-file code health from complexity, duplication, test coverage and churn, mines git history for hotspots and ownership, and lifts the architectural decisions into documentation you can read here or query through MCP.
The codebase has 18,146 files and 87,932 symbols in 18 modules, led by TypeScript, Go and JavaScript. Code health is 7.9 out of 10, rated good.
Use the links above to open each view, or connect this repository to your agent for grounded answers inside Claude, Cursor, Codex or VS Code.