grafana/grafana
Dependencies
A high-level inventory of the major external dependencies in this repo. Full lists are in go.mod and yarn.lock.
Go
go.mod is 756 lines and lists hundreds of direct dependencies. Each direct entry is annotated with an owning team via a // @grafana/<team> comment so it's clear who maintains the integration.
Notable categories:
- k8s.io/ — Kubernetes apimachinery and apiserver. Powers the app-platform.
- prometheus/ (alertmanager, common, prometheus) — Embedded Alertmanager and Prometheus client/format.
- grafana/grafana-plugin-sdk-go — Backend plugin SDK.
- grafana/grafana-app-sdk — App SDK for resource definitions.
- xorm.io/xorm — SQL ORM used by sqlstore.
- centrifugal/centrifuge — WebSocket pub/sub.
- **influxdata/, **microsoft/sql-, **lib/pq, **go-sql-driver/mysql** — Database drivers.
- AWS, Azure, GCP SDKs — for the cloud-monitoring datasources.
- go-openapi/, swaggo/ — OpenAPI tooling.
- opentelemetry-go — Tracing.
A handful of go.work modules sit alongside the root: each apps/<name>/ directory and a few helpers (apimachinery, semconv, …). Run make update-workspace after adding a module.
JavaScript
package.json declares hundreds of dependencies; yarn.lock resolves to ~1.3 MB of transitive resolutions.
Notable categories:
- react / react-dom — UI runtime. Currently runs against React 18 with a parallel React 19 build.
- @reduxjs/toolkit, react-redux — State management.
- @grafana/scenes — External package consumed by
dashboard-scene/. - emotion — CSS-in-JS.
- uplot, plotly.js, mapbox-gl, d3 — Visualization libraries.
- monaco-editor — Code editors (PromQL, LogQL, SQL).
- i18next, @lingui/core — i18n.
- rxjs — Reactive primitives across the codebase.
- immer, comlink — Smaller utilities.
- playwright, jest, react-testing-library — Test infrastructure.
Build-time dependencies
- Go: standard toolchain (1.26+),
wirefor DI,goimports,golangci-lint,mockery. - Node: 24.x (see
.nvmrc), Yarn 4 via Corepack, Webpack, Nx, Lerna. - CUE:
cuefor schema codegen. - Make: top-level orchestration.
Plugin SDK
External datasource and panel plugins typically depend on:
@grafana/data,@grafana/ui,@grafana/runtime,@grafana/schema,@grafana/i18n,@grafana/e2e-selectors(frontend).github.com/grafana/grafana-plugin-sdk-go(backend).@grafana/create-plugin(scaffolding).
See also
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.