it tells me that it cannot iterate over a single item/collection of strings
EDIT: i made progress by changing “${measurements}” to ["${measurements}"].
It is now able to query a single measurement, but can still not query multiple because it writes writes the collection of measurments out as: ["{object1,object2,object3}"].
I think what you are describing is filtering the data based on the regex in the variable measurements, but that is not the behaviour im aiming for. Pls correct me if i am wrong on this.
I want to filter my query based on a collection or rather repetition of strings (i also get the strings from another query). But i appreciate the help.
@Rush_Ferchau Because Grafana returns the set as a string, it takes some string manipulation to transform the variable value into a Flux array. This should work: