grafana/grafana
Data models
A pointer-style index of where to find the canonical type definitions for the major entities in Grafana.
Identity
| Type | Where |
|---|---|
User |
pkg/services/user/user.go |
SignedInUser |
pkg/services/user/user.go |
identity.Requester |
pkg/services/auth/identity/ |
Org |
pkg/services/org/org.go |
Team |
pkg/services/team/team.go |
ServiceAccount, ServiceAccountToken |
pkg/services/serviceaccounts/serviceaccounts.go |
ApiKey |
pkg/services/apikey/apikey.go |
accesscontrol.Permission, Role, RoleBinding |
pkg/services/accesscontrol/models.go |
Dashboards & content
| Type | Where |
|---|---|
Dashboard (Go) |
pkg/services/dashboards/models.go |
Dashboard (CUE / k8s) |
apps/dashboard/kinds/ |
Folder |
pkg/services/folder/folder.go and apps/folder/ |
LibraryElement, LibraryPanel |
pkg/services/libraryelements/, pkg/services/librarypanels/ |
Playlist |
pkg/services/playlist/, apps/playlist/ |
DashboardSnapshot |
pkg/services/dashboardsnapshots/ |
Annotation |
pkg/services/annotations/, apps/annotation/ |
PublicDashboard |
pkg/services/publicdashboards/models/ |
Datasources & queries
| Type | Where |
|---|---|
DataSource |
pkg/services/datasources/models.go |
DataQuery |
packages/grafana-data/src/types/dataFrame.ts (TS), pkg/expr (Go) |
DataFrame, Field |
packages/grafana-data/src/types/dataFrame.ts |
QueryDataRequest, QueryDataResponse |
grafana-plugin-sdk-go (external) |
PanelData (frontend) |
packages/grafana-data/src/types/panel.ts |
Alerting
| Type | Where |
|---|---|
AlertRule |
pkg/services/ngalert/models/ |
AlertInstance, State |
pkg/services/ngalert/state/ |
AlertmanagerConfig, Receiver, Route |
pkg/services/ngalert/notifier/ (re-exporting from the embedded Alertmanager) |
Provenance |
pkg/services/ngalert/provisioning/provenance.go |
Plugins
| Type | Where |
|---|---|
Plugin (Go) |
pkg/plugins/plugins.go |
PluginMeta (TS) |
packages/grafana-data/src/types/plugin.ts |
DataSourceApi, DataSourcePlugin |
packages/grafana-data/src/types/datasource.ts |
PanelPlugin, PanelProps |
packages/grafana-data/src/types/panel.ts |
AppPlugin, AppRootProps |
packages/grafana-data/src/types/app.ts |
Live
| Type | Where |
|---|---|
LiveChannelAddress, LiveChannelConfig |
packages/grafana-data/src/types/live.ts |
| Channel handlers | pkg/services/live/feature/ |
Settings & feature toggles
| Type | Where |
|---|---|
setting.Cfg |
pkg/setting/setting.go |
featuremgmt.Flag* constants |
pkg/services/featuremgmt/toggles_gen.go |
FeatureToggles (TS) |
packages/grafana-data/src/types/featureToggles.gen.ts |
Theme
| Type | Where |
|---|---|
GrafanaTheme2 |
packages/grafana-data/src/themes/types.ts |
See also
- Glossary — definitions of the terms used above.
- Backend / Services — where each domain's models live.
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.