Open j-svensmark opened 3 months ago
In the docs there is an example of how to use the REST API to update an alert rule. The API used in the example (api/ruler/grafana/api/v1/rules) is apparently not intended for public use. Accordingly there doesn't appear to be any documentation of this API in Grafana docs. Example of the code in the docs:
api/ruler/grafana/api/v1/rules
r = requests.delete(f"https://{server}/api/ruler/grafana/api/v1/rules/{folder}/{groupName}", headers=headers, verify=verify)
Would it be possible to update this example to use the alert provisioning API? https://grafana.com/docs/grafana/v10.4/developers/http_api/alerting_provisioning/
I noticed this issue after upgrading to Grafana 10, and seeing that the alerts we were uploading using Grafanalib were missing. It worked fine in Grafana 9.
Grafanalib
In the docs there is an example of how to use the REST API to update an alert rule. The API used in the example (
api/ruler/grafana/api/v1/rules
) is apparently not intended for public use. Accordingly there doesn't appear to be any documentation of this API in Grafana docs. Example of the code in the docs:Would it be possible to update this example to use the alert provisioning API? https://grafana.com/docs/grafana/v10.4/developers/http_api/alerting_provisioning/