I simply want to create a variable of all possible values of a tag within a measurement. In influx v2 its a mystery. I’ve scoured the v2 docs and its not obvious how to do this. I found this: Common variable queries | InfluxDB OSS 2.0 Documentation. It says to query this:
I feel a bit foolish. I went back to find out what the error was again and its working this time.
Out of curiosity on this line: "import “influxdata/influxdb/v1”. shouldn’t that be v2 because I’m using v2 of influxdb, or is that something different?
That line imports a package of functions designed to work with metadata similar to how you would in InfluxDB v1. That’s why it’s in the influxdata/influxdb/v1 package. Sorry for the confusion.