Alert annotation in panel

hi,

i replaced my old panel-based alerts with the new alerts. so i created alert rules which contain annotations with a Dashboard UID and a Panel ID. this also works, so i can seee the green/red heart symbol in the dashboard panel if this alert fires.

but there is no annotation for start/end as with the old alerts (red/green annotation line). i opened the sqlite database to query the database and there is an entry in the annotations which has the alert id, but the columns for dashboard-id (id, not uid) and the panel-id are both 0.

is there anything i can do, so that the unified alerting system creates an annotation which is shown in a specific dashboard/panel?

thanks

3 Likes

Hi! Thanks for this. I will see if I can find some time to look into this later this week and come back with an answer.

2 Likes

thanks.

i also have a problem with the the alert-system: it looks like that the alert-id’s were re-used. but i think this is a bug, so i created a ticket (Wrong alert state history · Issue #59813 · grafana/grafana · GitHub). only wanted to mention, perhaps there is a correlation (also i don’t think so).

i replaced my old panel-based alerts with the new alerts. so i created alert rules which contain annotations with a Dashboard UID and a Panel ID. this also works, so i can seee the green/red heart symbol in the dashboard panel if this alert fires.

but there is no annotation for start/end as with the old alerts (red/green annotation line). i opened the sqlite database to query the database and there is an entry in the annotations which has the alert id, but the columns for dashboard-id (id, not uid) and the panel-id are both 0.

is there anything i can do, so that the unified alerting system creates an annotation which is shown in a specific dashboard/panel?

is there any news on this topic, we have exactly the same problem. We use the latest Grafana version 9.3.1

Thanks, BR

Hi, same confusion here about whether the alert state annotations disappeared from any panel at some point.

Hi,

after updating to 9.3.2 my alert annotations also disapeared.

The Red/Green hearts on the panels title are working correctly.

I hope this could be fixed in future releases.

Thanks for the great grafana Software!

same for me. After we updated to 9.3.2 today the annotations disappeared from the panels.

We’ve found the issue that broke annotations in 9.3. It should be fixed in 9.3.3. Alerting: Fix missing dashboard/panelID links in annotations by alexweav · Pull Request #60926 · grafana/grafana · GitHub and Annotations: Fix EpochEnd being zero for Alert-generated annotations by alexweav · Pull Request #60931 · grafana/grafana · GitHub.

Hi,
can it be that the fix Annotations: Fix EpochEnd being zero for Alert-generated annotations by alexweav · Pull Request #60931 · grafana/grafana · GitHub
is still not included in version 9.3.4 or 9.3.6? ty