How to handle empty variable in grafana with otsdb


I have added a graph panel for OTSDB data source.

I am using a tag query server=[[servername]]

Servername is a variable with two values server1 and server2.

Graph displays fine for server1 and server2 but I want to have an option in the variable drop down to show empty option as well.

If the user selects that option that the graph should aggregate values from server1 and server2. I am using avg as aggregate function but I guess that does not matter for this discussion.

Is this possible in grafana and specifically for OTSDB data source?

IncludeAll option will create two graphs. I do not want that. I want one graph with the aggregated value.


Did you figure this out?

Is that not the same as the “All” option?