Home / Companies / Grafana Labs / Blog / Post Details
Content Deep Dive

How to provision a notification policy in Grafana Alerting — and keep it editable in the UI

Blog post from Grafana Labs

Post Details
Company
Date Published
Author
Antonio Calero Merello
Word Count
700
Company Posts That Month
30
Language
English
Hacker News Points
-
Summary

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.

Trends Found in this Post

No tracked trend matches for this post yet.