You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the API to manage alerts via code, but unfortunately, the API lacks validation of the alerts. For example, when I create alert with a typo in refId, so the Triggers no longer link together, the Alert is successfuly created.
What's more, it appears as if it works correctly, everything is green:
When I try to edit the alert, I get this, so clearly, Grafana is capable of detecting this error.
Additionally, one broken Alert like this completely breaks Alert editing via UI - it is not possible to delete or edit any alert when at least one in a dasboard (I don't know the scope, it's more than a dashboard) is broken, we have to use the API to delete them.
What did you expect to happen?
API rejects creation of invalid alerts. UI does not break when one alert has invalid definition.
Did this work before?
How do we reproduce it?
Create alert using the API. Make it somehow invalid, for example add two triggers, but with refId+expression that don't match each other.
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana: 9.5.15
Grafana platform?
I don't know
Datasource(s)?
Prometheus
The text was updated successfully, but these errors were encountered:
What happened?
We use the API to manage alerts via code, but unfortunately, the API lacks validation of the alerts. For example, when I create alert with a typo in
refId
, so the Triggers no longer link together, the Alert is successfuly created.What's more, it appears as if it works correctly, everything is green:
When I try to edit the alert, I get this, so clearly, Grafana is capable of detecting this error.
Additionally, one broken Alert like this completely breaks Alert editing via UI - it is not possible to delete or edit any alert when at least one
in a dasboard(I don't know the scope, it's more than a dashboard) is broken, we have to use the API to delete them.What did you expect to happen?
API rejects creation of invalid alerts. UI does not break when one alert has invalid definition.
Did this work before?
How do we reproduce it?
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana: 9.5.15
Grafana platform?
I don't know
Datasource(s)?
Prometheus
The text was updated successfully, but these errors were encountered: