Grafana v7.5.6 Variables templating error

Grafana v7.5.x has new ‘Selected’ option in the variables drop-down list which allows user to clear the selections. It can be used to select and unselect the options in the list. When the Variables has Multi-value select and All option enabled, the ‘Selected’ option basically clear all the selection passing a null value in the query which this variables are used. This causes the query to fails send a error message saying there is a mistake in the query.
In ideal scenario, the native plugins shows No Data in the panels. But while using custom panels the error message is highlighted as an error in the query.

  • What Grafana version and what operating system are you using?
    Grafana v7.5.6 OS-Windows

  • What are you trying to achieve?
    Way to handle the variables error issue in custom panels

  • How are you trying to achieve it?
    looking for a better error handling for no values selected in variables

  • What happened?
    Getting as query error message in the custom panel

  • What did you expect to happen?
    Show no data or appropriate error message

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    Grafana Panels

  • Did you follow any online instructions? If so, what is the URL?

This topic was automatically closed after 365 days. New replies are no longer allowed.