grafana/public
Alexander Akhmetov b641fd64f9
Alerting: API to create rule groups using mimirtool (#100558)
What is this feature?

Adds an API endpoint to create alert rules with mimirtool:

- POST /convert/prometheus/config/v1/rules/{NamespaceTitle} - Accepts a single rule group in a Prometheus YAML format and creates or updates a Grafana rule group from it.

The endpoint uses the conversion package from #100224.

Key parts

The API works similarly to the provisioning API. If the rule does not exist, it will be created, otherwise updated. Any rules not present in the new group will be deleted, ensuring the group is fully synchronized with the provided configuration.

Since the API works with namespace titles (folders), the handler automatically creates a folder in the root based on the provided title if it does not exist. It also requires a special header, X-Grafana-Alerting-Datasource-UID. This header specifies which datasource to use for the new rules.

If the rule group's evaluation interval is not specified, it uses the DefaultRuleEvaluationInterval from settings.
2025-02-25 11:26:36 +01:00
..
app Navigation: Send isNew flag in grafana_navigation_item_clicked events (#101209) 2025-02-25 10:17:02 +00:00
dashboards Dashboards: Bring back scripted dashboards (#100575) 2025-02-13 15:46:22 +01:00
emails
fonts
gazetteer
img Explore: Move drilldown apps from Explore to a new navbar item "Drilldown" (#100409) 2025-02-20 17:56:55 +00:00
lib
locales I18n: Download translations from Crowdin (#101260) 2025-02-25 11:34:26 +02:00
maps
sass CSS: Update generated scss file (#100413) 2025-02-11 12:35:21 +01:00
swagger
test
vendor
views App: Fix web app behaviour on iOS (#100382) 2025-02-11 10:01:33 +00:00
api-enterprise-spec.json CloudMigrations: save snapshot of alert rule groups (#100109) 2025-02-06 12:35:59 +01:00
api-merged.json Alerting: API to create rule groups using mimirtool (#100558) 2025-02-25 11:26:36 +01:00
openapi3.json Alerting: API to create rule groups using mimirtool (#100558) 2025-02-25 11:26:36 +01:00
robots.txt