Adding Prometheus variable to filter values

Hello


,

Currently, I’m working on Grafana dashboard to display to artifact values based on input selection in filter variable, I’m not able to filter the values based on input value from variable so here my requirement.

i have created variable named artifact and provided values in dropdown as 1. Stellar-linux64 and 2. Stellar-win64. My requirement is when i select Stellar-linux64 (first option from dropdown) filter should display all the artifact name start with Stellar-linux64 in table panel and when i select Stellar-win64 (second option from dropdown) then filter should display only the artifacts starts with Stellar-win64 in panel.

As of now, Stellar-linux64 filter is working fine as expected but Stellar-win64 input not display values start with Stellar-win64 string, I have attached screenshot for your reference.

I’m stuck on this issue since a week. Could you please guide and help me to resolve this issue ?

Please let me know if any information is required.

what is your query to get the data, how is the 1st filter configured?

Hello Sowden,

I have used this query stellar_linux64{artifact!=“$artifact”} and attached screenshot for variables used

and how does your query use the variables?

stellar_linux64{artifact!=“$artifact”} - this query i have used