Annotations and Flux: Showing "current time" line

  • What Grafana version and what operating system are you using?

Grafana version 9.2.4 on win11 22H2 (OS Build 22621.963)

  • What are you trying to achieve?
    I want to add a (moving) ‘current time’ line on graph. Basically the issue as described in this post: Showing a current time 'line'
    However, instead of a SQL DB I am using an InfluxDB. My InfluxDB data source is configured for the Flux query language.

  • How are you trying to achieve it?
    I tried to make a comparable annotation for an InfluxDB data source. However, the grafana documentation regarding annotations using Flux query language is not really existent:
    Flux support in Grafana | Grafana documentation

Any ideas to solve this issue? Many thanks in advance!

Welcome @lkbnxa to the forum.

Can you try adding another InfluxDB query like this, and then play with the overrides to get it to appear as a line?

Thank you for your reply. It didn’t solve my problem directly, but it gave me good hints to find a suitable solution:

You can create a similar InfluxDB query, but you need to add a column “text” to the array. This is necessary for grafana to recognize that events are queried here.