Configuring alerts on panel with multiple Variables

I have a dashboard with variables set so I can select different host names, for example, and when selecting those host names switches the graph for the corresponding host name.

I setup an alert by clicking on the panel → Edit → Alert (tab). Now, the problem seems that the alert is working, but it’s showing the alert marker at the same point in every single graph for each host name, which doesn’t help me at all because I have no idea which hostname’s graph data generated the alert.

Is this just not possible to do? I’d like to have the alert for every single individual hostname when I select it from the drop-down menu.

@Clu This is the way how built-in Grafana annotations work. They don’t support variables.

It’s possible to do it using the Grafana HTTP API Data source.

Video Tutorial