After some searches i am still not sure if this is possible, what i would want is to make dynamic graphs on a dashboard using templating.
For that purpose i can use variables which contain other variables, so i can avoid things like this, where i can select more than a core on a cpu_value like /boot or /dev which makes no sense. I already have the host variable like this where i can see the host of a provided client as a filter.
You can see both of this cases in this image:
The problem with using variables into variables is when in this case i want to change a client, the host field does not get updated with the new set of values of the changed client.
So the question here is… Is there a way to make this variables “requery” on update of the dependant variable? So when i change the client, the list of host from this new client is refreshed and i can select a new host.
Right now with the provided options i was not able to make this behaviour happen.
yes, just use the variable in the query that way they get linked. So whenever you change a variable that is used in another variable query it will cause it to update as well.
Got it working, it was the variable measurement definition:
SHOW TAG VALUES WITH KEY = “cliente”
SHOW TAG VALUES WITH KEY = “host” WHERE cliente =~ /^$cliente$/
show measurements
SHOW TAG VALUES FROM /^$measurement$/ WITH KEY IN (“type”)
SHOW TAG VALUES FROM /^$measurement$/ WITH KEY IN (“type_instance”)
SHOW TAG VALUES FROM /^$measurement$/ WITH KEY IN (“instance”)