Hello,
The Annotation list panel is no longer updating from alert annotation history for me, is this a bug or a known issue? ( using 9.4.3, manual annotations gets added, but not the once from alerting)
Hi!
It is working for me in Grafana 9.4.3 (please see screenshot):
Can you turn on debug logging in Grafana and look for Alert state changed creating annotation in the logs:
DEBUG[03-17|13:16:00] Saving alert states logger=ngalert.state.manager rule_uid=efb5df22-9a7e-4193-a22a-dc8ba1a88e04 org_id=1 count=2
DEBUG[03-17|13:16:00] Alert state changed creating annotation logger=ngalert.state.historian rule_uid=efb5df22-9a7e-4193-a22a-dc8ba1a88e04 org_id=1 newState=Alerting oldState=Normal
DEBUG[03-17|13:16:00] Alert state changed creating annotation logger=ngalert.state.historian rule_uid=efb5df22-9a7e-4193-a22a-dc8ba1a88e04 org_id=1 newState=Alerting oldState=Normal
INFO [03-17|13:16:00] Sending alerts to local notifier logger=ngalert.sender.router rule_uid=efb5df22-9a7e-4193-a22a-dc8ba1a88e04 org_id=1 count=2
Hello,
They show up in the timeseries panel, but not in the annotation list panel:
Same issue as this guy it seems:
Found that one after
Also tested with nightly build and same issue there.
Ah apologies, I misunderstood. Iām not familiar with that panel, but it seems like it could be a bug. Could you open an issue for this on Issues Ā· grafana/grafana Ā· GitHub?
Hello,
Iāve reported here now: Alerts states annotations not shown on Annotation list panel Ā· Issue #64961 Ā· grafana/grafana Ā· GitHub
The annotation panel does not show Alerts since itās filtering annotations with a specific type.
We recently created a Grafana HTTP API data source that allows retrieving annotations and alerts and then displaying them using any available panel in your style.
Blog post with details.
Hello,
Thanks, very interesting, I tested the HTTP API plugin, it seems to retrieve only one alert ID and when I select Dashboards āThisā on a dashboard I have active alarms and annotations it does not show any, is it working properly for 9.4.3?
Thanks!
@Skywalker, try to increase Max Limit to 1000 or more. By default, API retrieves 100.
Are you sure alarms and annotation have Dashboard UID set to the current dashboard? You can check the Dashboard UID in the returned results for all dashboards.
Hello,
The dashboard UID is the same as in the alert and using the config below:
Alert conf:

url:
There are both active and pending alerts on the dashboard but it only returns No data using the plugin.
I did notice that when I select Dashboard ALL and check Dashboard UID none show the Dashboard UID, Actually, it only shows the ones that do not have a dashboard UID.

Do you have any other tips?
Hello,
I did figure out what was wrong.
The API user was set as a viewer, but when I changed to admin I could see all dashboard UIDs and the plugin was working as expected.
I have a follow-up question, Regarding the string that is in the text column, is it possible to separate the labels into rows? I tried using transform ā extract fields but it creates a bit of a mess.
@Skywalker As we discussed in Slack, a feature request opened Extract Annotation Alarm labels Ā· Issue #16 Ā· VolkovLabs/volkovlabs-grapi-datasource Ā· GitHub
PR merged and will be a part of the upcoming release.
Hello everyone,
I think I have the same problem. Recently, I have been working with Grafana 7.5.5, and in this version, the system for alerting and generating annotations was working different. The alert query was created on the panel in the dashboard, and then the alert was fired, after which Grafana automatically created the annotation line on the time series panel.
Now I am using Grafana 9.3.1, and if I use the standard Prometheus dashboard and a simple alert rule, then the alert works, but the annotation is not automatically created.
I have watched many tutorials, but they havenāt helped me.
Do you find the solution for this issue?
@Pugachev_Ilay Have you tried in 9.4.7 or 9.5.0? How do you know that annotations are not automatically created? You donāt see them on the panel.
Do you see anything returned from the /api/annotations endpoint in the Browser Console ā Network?
Looking at the latest screenshot, Alert rules generate Alert Annotations when Annotations are Native manual annotations. To retrieve Alert annotations generated from Alert rules, you need to select All or Alert.
Have you seen this video? Itās for Timescale and Grafana 9.4.7, but the steps for Prometheus are the same.
Itās unbelievable, I installed Grafana 9.4.7 and all annotations are finally working!
I think itās sad and funny at the same time, because I tested versions 9.3.1, 9.3.6 and 9.4.3 and it wasnāt working. But with version 9.4.7, it worked āout of the boxā. I just used the included instruments of Grafana and it worked!
Also, I tested the āGrafana HTTP APIā plugin on versions 9.3.6, 9.4.3 and 9.4.7. Unfortunately, it worked only on 9.4.7. Maybe Iām doing something wrong, I donāt know. But I have to say that I literally did everything I saw in Daria Volkovaās video.
Anyway, Iād like to thank you so much for your support and help! Iām really enjoying the Volkov Labs YouTube channel too!
@Pugachev_Ilay Great to hear.
The latest version of Grafana HTTP API requires 9.4.0 to retrieve Alert Rules to get Alert Name and UID. The required API endpoint was introduced in 9.4.0, which is why itās working for 9.4.7 for you.
The issue was fixed in the main and will be a part of the upcoming release.
Good news, thank you!
Hi Mikhail, tell me please, Ńauld I install Grafana HTTP API plugin selectively without sudo?
Iām start grafana from user on my server and I donāt have any sudo rights. Could you write the steps to run your plugin without sudo commands?
@Pugachev_Ilay Who owns the plugins folder on your server? If the directory has write permissions for your user, you should not have any issues copying the plugin files in the folder.
- Download the latest version from GitHub.
- Extract the plugin in the
pluginsfolder.
Let me know if it helps.
Hello Mikhail
Thank you, your advice helped me. Iām successfuly install grapi. But it doesnāt helped me to resolve finally issue.
I have a complicated question. At first, I want to explain what is my āfinally issueā. I have dashboard on grafana with many pannel and different datasourse. On several pannels I have custom alert rules. And when alert rule is triggered I saw an annotations on pennel with some text (name of alert rule, dashboard folder, dashboard pannel name, A=ā¦, B=⦠). Maybe I forgot something.
We have large and incomprehensible description of alert, because of this, the annotation becomes useless.
I think, perfect results is it.
Alert triggered ā activate annotation on panel ā discribe of annotation, something like that (Error: query name, A=ā¦, B=ā¦)
On grafana 7.5.5, when we have old system of alerting it was possible āfrom the boxā but now it doesnāt look simple.
Maybe I can do that with Grafana HTTP API plugin?
I tried to fix this via Grafana HTTP API but it seems like text of annotation doesnāt have many ways to customisation.
Maybe, I do something wrong
Now I use grafana 9.5.1, datasourse elasticsearch. Query and alert rules manedge from UI grafana
@Pugachev_Ilay So you want to have customization for text in the Annotations? Not just being able to select a corresponding field?
Unfortunately, there is no customization in Alerts of how Text should look like. Maybe itās on the roadmap. I can think of adding a customization option for the Text if itās not.
Please open an issue in the repository, GitHub - VolkovLabs/volkovlabs-grapi-datasource: Grafana HTTP API Data Source for @grafana.






