schema.fieldKeys allows the use of predicate to filter, but schema.measurements doesn´t.
I understand the only way is to query based on other criteria and then remove the result columns except for measurements. Something like:
from(bucket: “yourbucket”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“some tag”] == “some tag value”)
|> drop(columns: [“col1”, “col2” … , “_field”, “_value”, “_time”, “_start”, “_stop”]) —> all excpetc measurement
|> unique(column: “_measurement”)
And this will list all measurements for r[“some tag”]