Granfana v7.5: Panels (Gauge/Graph) Dynamic Thresholds

I know there are some older posts and questions exists, but I don’t find a solution.
Maybe someone has a workaround to this problem.

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

  • Grafana v7.5.5 (b5190ee547) on a Windows 10 OS

  • What are you trying to achieve?
    To use dynamic thresholds for the Graph and Gauge panels.

  • How are you trying to achieve it?
    In case oft the Graph-Panel the alert option seems to be an idea.
    With the dashboard-variable option, this was also not possible.
    I don’t find any option other to achieve this request.

  • What happened?
    The threshold can only be set as a fix value.

  • What did you expect to happen?
    A result of a query should be saved in a variable that could be used as input for a threshold.

Thx in Advance

Welcome Nunu to the Grafana forum. As you noted, the subject of dynamic thresholds has been brought up before.

Short answer: Dynamically assigned thresholds are still a feature request .
EDIT: The ability to set a threshold from a query came out in 8.1. See this dashboard. I played around with the demo and it works fine, but does not seem too different than what is done below (i.e. create a new query that sets a line called threshold).

Long answer: There are workarounds. See here for an example.


Hi Grant2,
only to be clear,
this feature is not available for Grafana v7.5.5.
Will this workaround work with influxDB and gauge panel too?

Maybe this is a solution: Use query for field "Max" value in gauge visualization - #4 by smaser