grafana/grafana
apps/alerting
Alerting resources exposed via the app-platform. Source under apps/alerting/.
Scope
The alerting app exposes the alerting domain's primary entities as Kubernetes-style resources:
AlertRule— a single rule (queries + condition + interval).RuleGroup— a group of rules evaluated together.ContactPoint— a notification destination.NotificationPolicy— a routing tree node.MuteTiming,Template,TimeInterval.
These complement the existing /api/v1/provisioning/* and /api/ruler/* endpoints rather than replacing them — clients can interact with alerting state via either API.
Why both APIs?
Existing IaC tools (Terraform Grafana provider, ansible-grafana) target the legacy provisioning API. The new resource API is for operators and controllers that prefer a Kubernetes-style watch/reconcile loop. Both surfaces read/write the same underlying ngalert store.
Layout
apps/alerting/
├── kinds/ # CUE schemas
├── pkg/apis/alerting/v0alpha1/ # Resource definitions + handlers
├── pkg/storage/ # Bridge to ngalert store
└── plugin/ # App SDK manifestSee also
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.