I am evaluating Influx 2.0 and can’t find a good way to extract measurements. Maybe someone can point me in the right direction?
What I am trying to do?:
I want to get all measurements that contain a specific tag.
What did I try?
I tried the example here: https://www.influxdata.com/blog/schema-queries-in-ifql/#respond
In my understanding that would give me all measurements as a start. But the example doesn’t seem to work?
I use the java client library with the following code:
queryApi.query("from(bucket:\"opennms\")\n" + " |> range(start:-24h)\n" + " |> group(by:[\"_measurement\"])\n" + " |> distinct(column:\"_measurement\")\n" + " |> group(none:true)");
The error I get is:
type error 3:6-3:32: function does not take a parameter "by", required params ∅
Is the example broken?
What would be an efficient way to get all measurements (ideally including all their tags) that contain a specific tag?
Here is my nasty workaround:
Any ideas are appreciated!