I am using Prometheus datasource with Grafana. When I use a multi-value template variable for my queries, say A and B, I expect to get two separate graphs plotted in the same space, however i only get one graph with {A + B}, and the resultant is only the query output for the last value, i.e. B in this case. The image below illustrates what I can see.
I have tried repeat panels but that duplicates the graph and gives me two separate graphs for the same metric. I don’t want that. I want it to be plotted on the same graph. What do I have to do in order to have two separate graph lines plotted on the same graph based on the values my template variable receives? Any help will be much appreciated.
And I believe this is what it is doing even while dispaying the graph - only displaying for the last value. Any thoughts why this might be and how it could be fixed?
I need to implement this feature in majority of my graphs… the feature of plotting graphs for all selected templated variables in a single graph. Your help with this will be much appreciated @torkel
Not sure I understand, what is the query for your server variable? It should return the exact value of the instance labels. Or did you define the values in the server variable manually?
Well that cannot be right. Since you use it to filter instance labels, the server variable needs to be the complete value of a instance label. Update your server variable query to return full instance labels!
I expect to get two separate graphs plotted in the same space, however i only get one graph with {A + B}, and the resultant is only the query output for the last value
Actually it’s the same question as the mathurj, but it seems that it is not the same type of issue