How to provision a notification policy in Grafana Alerting â and keep it editable in the UI
Blog post from Grafana Labs
Provisioning notification policies in Grafana Alerting can enhance deployment speed and streamline the notification process by routing alerts using alert labels within a tree structure of nested policies. Users can create or update these policies either through the Grafana UI, configuration files, or an API. While provisioning through configuration files results in non-editable policies in the UI, a workaround exists for API provisioning that keeps policies editable by including an X-Disable-Provenance header. This header allows changes to be made post-provisioning, though it must be included in the initial API request. The process involves retrieving the notification policy tree in JSON format, making necessary modifications, and submitting them via a PUT request. Grafana Alerting supports different platforms, including Grafana OSS, Enterprise, and Cloud, with the latter offering a free tier to get started.