grafana/grafana
apps/provisioning
Provisioning state and workflows. Source under apps/provisioning/.
Scope
The provisioning app exposes Grafana's provisioning concepts as resources:
Repository— a Git repo (or other source) Grafana syncs from.Job— a sync run.ResourceState— the diff/status of a managed resource.Webhook,Schedule, etc.
This is the basis for the new "Connect to a Git repo" / "GitOps" experience that lets users keep dashboards, folders, and alerts in version control with Grafana acting as a continuous-sync agent.
Layout
apps/provisioning/
├── kinds/ # CUE schemas
├── pkg/apis/provisioning/v0alpha1/
├── pkg/storage/
├── operator/ # Sync controller
└── plugin/The operator under operator/ watches Repository resources and reconciles their state against Git, emitting Job resources for each sync cycle. Cross-package integration tests live under pkg/tests/apis/provisioning/ — its common/testing.go is one of the largest test helpers in the repo (~3,100 lines).
Frontend counterpart
public/app/features/provisioning/ hosts the GitOps UX: connect a repo, view sync status, trigger manual syncs, configure path mappings.
See also
- Backend / Services — legacy provisioning service in
pkg/services/provisioning/.
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.