How to implement Flux Queries for annotations

Hi ,

I want have integrated the Flux Db datasource in my Grafana.
I am able to implement the graphs with the help of flux datasource, but i also want to implement the annotations with the flux datasouce.
I my Setting->Annotation->Datascource i am able to see all the other datasource but expect my Flux Datasouce.

Note:- In my old version grafana it is working fine …But it is not working in new version .

I have attach images below…


Thanks in Advance…

I am having the same issue. No idea how to get a Flux query working as annotation.

I have a measurement in InfluxDB2 called ‘syslog’, which contains log entries which I would like to use as annotation.

from(bucket: "R757")
  |> range(start: -12h)
  |> filter(fn: (r) => r["_measurement"] == "syslog" and r["_field"] == "message")
  |> map(fn: (r) => ({_time:r._time, _value: JNUM + "\\" + r.host +" - "+ r.severity + " - " + r._value}))

I add that as an annotation query:

But all I get is the following error when i open the dashboard:
image

Any suggestions?

I ám stuck also, i can make them in Chronograf from influx, only ik can not copy the source to Grafana like the normal fluxlang in the explorer page from Cronograf to Grafana