Add horizontal line at average level on graph

I would like to add a horizontal line ( like the threshold line) but that will stay on the average value ?
How can i implement this ?

Thanks

WoeperBE

There isn’t any support for dynamic thresholds in Grafana yet (hopefully in the future). But depending on which data source you are using it might be possible to draw a line using a query.

For example, if you were using Graphite then it has an aggregateLine function for your use case:

It’s also possible with Prometheus using an Instant Query and a transform: https://grafana.com/docs/grafana/latest/features/datasources/prometheus/#instant-queries