I creates few variables which do not include null values, but when I change the variable selection It can be empty values automatically selected then it cause template errors. I use SQL datasource and SQL queries.
When I design variable there should be “Not Null” option and Grafana should automatically prevent Empty selections to avoid this problem.
Steps to reproduce the problem:
- Create variables and use them in chart’s query in where condition.
- Make selection in variable value’s list. (If you do not use “Include All Option” and use “Multi Value” you can easily uncheck the selection it will be automatically empty value)
- After making selections try go back in your browser few times then you will see the empty values.
Version numbers (grafana, prometheus, graphite, plugins, operating system, etc.):
Grafana v7.5.15 (7dd69b2442)