Is there any way to conditionally disable queries?


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

  • What are you trying to achieve?
    I want to disable some queries of the same panel according to $variable.

  • How are you trying to achieve it?
    I create a variable: or/and, and the query example: true $variable up.

  • What happened?
    When I switch to and, grafana didn’t show the result of PromQL query, but it executed this query.

  • What did you expect to happen?
    I hope that grafana did not show the result and did not execute this PromQL query.