MCPcopy
hub / github.com/grafana/grafana

github.com/grafana/grafana @v13.1.0 sqlite

repository ↗ · DeepWiki ↗ · release v13.1.0 ↗
88,003 symbols 406,323 edges 14,822 files 19,768 documented · 22%
README

Grafana Logo (Light) Grafana Logo (Dark)

The open-source platform for monitoring and observability

License Go Report Card

Grafana allows you to query, visualize, alert on and understand your metrics no matter where they are stored. Create, explore, and share dashboards with your team and foster a data-driven culture:

  • Visualizations: Fast and flexible client side graphs with a multitude of options. Panel plugins offer many different ways to visualize metrics and logs.
  • Dynamic Dashboards: Create dynamic & reusable dashboards with template variables that appear as dropdowns at the top of the dashboard.
  • Explore Metrics: Explore your data through ad-hoc queries and dynamic drilldown. Split view and compare different time ranges, queries and data sources side by side.
  • Explore Logs: Experience the magic of switching from metrics to logs with preserved label filters. Quickly search through all your logs or streaming them live.
  • Alerting: Visually define alert rules for your most important metrics. Grafana will continuously evaluate and send notifications to systems like Slack, PagerDuty, VictorOps, OpsGenie.
  • Mixed Data Sources: Mix different data sources in the same graph! You can specify a data source on a per-query basis. This works for even custom datasources.

Get started

Unsure if Grafana is for you? Watch Grafana in action on play.grafana.org!

Documentation

The Grafana documentation is available at grafana.com/docs.

Contributing

If you're interested in contributing to the Grafana project:

Share your contributor experience in our feedback survey to help us improve.

Get involved

This project is tested with BrowserStack.

License

Grafana is distributed under AGPL-3.0-only. For Apache-2.0 exceptions, see LICENSING.md.

Extension points exported contracts — how you extend this code

Factory (Interface)
go:generate mockery --name=Factory --structname=MockFactory --inpackage --filename=factory_mock.go --with-expecter [6 …
apps/provisioning/pkg/connection/factory.go
MetricsProvider (Interface)
MetricsProvider defines the interface for fetching available metrics from any datasource type (Prometheus, Loki, Mimir, [7 …
apps/dashvalidator/pkg/cache/provider.go
CacheProvider (Interface)
CacheProvider is a generic cache interface for schema version providers. [266 implementers]
apps/dashboard/pkg/migration/schemaversion/cache.go
DecryptService (Interface)
DecryptService is the interface for the decrypt service. [26 implementers]
apps/secret/pkg/decrypt/contracts.go
Check (Interface)
Check returns metadata about the check being executed and the list of Steps [7 implementers]
apps/advisor/pkg/app/checks/ifaces.go
NamespaceProvider (Interface)
NamespaceProvider is a strategy for determining the namespace to use in token exchange requests. [41 implementers]
pkg/clientauth/providers.go
CanBeDisabled (Interface)
CanBeDisabled allows the services to decide if it should be started or not by itself. This is useful for services that m [19 …
pkg/registry/registry.go
Elector (Interface)
Elector abstracts the leader election mechanism. [540 implementers]
pkg/infra/leaderelection/leader_election.go

Core symbols most depended-on inside this repo

t
called by 8923
packages/grafana-i18n/src/i18n.tsx
Equal
called by 8874
pkg/services/dashboards/dashboardaccess/dashboard_access.go
Equal
called by 8812
pkg/util/xorm/core/core.go
Errorf
called by 7636
pkg/util/testutil/testutil.go
Return
called by 5964
pkg/expr/mathexp/parse/node.go
On
called by 4599
apps/alerting/rules/pkg/app/validation/builder.go
Run
called by 4507
pkg/modules/modules.go
Error
called by 4130
pkg/plugins/log/ifaces.go

Shape

Function 39,881
Method 30,263
Struct 8,496
Interface 6,706
Class 1,237
TypeAlias 640
Enum 540
FuncType 240

Languages

Go64%
TypeScript36%
Python1%

Modules by API surface

pkg/storage/unified/resourcepb/resource.pb.go416 symbols
pkg/apimachinery/utils/meta_mock.go400 symbols
apps/dashboard/pkg/apis/dashboard/v2/dashboard_spec_gen.go399 symbols
apps/dashboard/pkg/apis/dashboard/v2beta1/dashboard_spec_gen.go391 symbols
apps/dashboard/pkg/apis/dashboard/v2alpha1/dashboard_spec_gen.go381 symbols
pkg/services/authz/proto/v1/extention.pb.go376 symbols
pkg/util/xorm/core/core.go241 symbols
packages/grafana-schema/src/schema/dashboard/v2/types.spec.gen.ts204 symbols
packages/grafana-schema/src/schema/dashboard/v2beta1/types.spec.gen.ts202 symbols
packages/grafana-schema/src/schema/dashboard/v2alpha1/types.spec.gen.ts201 symbols
pkg/tests/apis/provisioning/common/testing.go185 symbols
pkg/storage/unified/resourcepb/search.pb.go174 symbols

Dependencies from manifests, versioned

buf.build/gen/go/parca-dev/parca/connectrpc/gov1.18.1-202507031259 · 1×
buf.build/gen/go/parca-dev/parca/protocolbuffers/gov1.36.2-202507031259 · 1×
cel.dev/exprv0.25.1 · 1×
cloud.google.com/gov0.123.0 · 1×
cloud.google.com/go/aiplatformv1.125.0 · 1×
cloud.google.com/go/authv0.20.0 · 1×
cloud.google.com/go/auth/oauth2adaptv0.2.8 · 1×
cloud.google.com/go/compute/metadatav0.9.0 · 1×
cloud.google.com/go/kmsv1.30.0 · 1×
cloud.google.com/go/longrunningv0.9.0 · 1×
cloud.google.com/go/monitoringv1.24.3 · 1×

Datastores touched

(mysql)Database · 1 repos
grafanaDatabase · 1 repos
keycloakDatabase · 1 repos
alreadypresentDatabase · 1 repos
existingparamsDatabase · 1 repos
grafanaDatabase · 1 repos
dbDatabase · 1 repos
mydatabaseDatabase · 1 repos

For agents

$ claude mcp add grafana \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact