Is it possible to have multiple variable selectors in Grafana?
772
I have created a Grafana graph panel that uses two variables: host and ifAlias. I would like to be able to select a second combination from the dashboard as seen below. How can I do this?
My suggestion would be to enable multi select on the variables and then let the whole row repeat based on variable A and each graph repeat based on the variable B.
To illustrate the outcome of my suggestion see this image (though there is no data in the graphs because of the lack of it in my prometheus):
I created first a Row and configured it to be named "$container" and repeated for each "$container", then created the first graph in this row and set its name to be "$container - $interface" and be repeated for each "$interface".
You are using variables and they are defined on the dashboard level. Your requirement is to have them on the panel level. That's not possible out of the box. But you can still create (code) own panel with support for that.
My suggestion would be to enable multi select on the variables and then let the whole row repeat based on variable A and each graph repeat based on the variable B.
To illustrate the outcome of my suggestion see this image (though there is no data in the graphs because of the lack of it in my prometheus):
I created first a Row and configured it to be named "$container" and repeated for each "$container", then created the first graph in this row and set its name to be "$container - $interface" and be repeated for each "$interface".
You are using variables and they are defined on the dashboard level. Your requirement is to have them on the panel level. That's not possible out of the box. But you can still create (code) own panel with support for that.