admin管理员组

文章数量:1395780

I work with grafana v11.5.2, the datasource is prometheus. I want to have a variable var1 that takes the distinct values for a criteria AND variable var2 that based on selected var1 value gives the multi value option for a second field. For instance, var1 can be aaa or bbb. when aaa is selected, i want var2 to be 111 or 222. when bbb is selected, var2 to be 333 or 444. right now, it does not care what I select as var1, and var2 always shows up all the options 111, 222, 333, 444. How can I write var2 in dependence to var1 chosen value? (var1 and var2 values should be dynamically read from prometheus, but related by a filter condition.) Thanks

本文标签: prometheusGrafana VariablesStack Overflow