Started my migration to 2.2 from 1.x and having trouble with a dashboard variable query that I use quite a bit to filter. I have searched and read a lot of articles but can’t seem to find how to put tag Values with a WHERE clause
SHOW TAG VALUES FROM "disk" WITH KEY = "path" WHERE host =~ /$server/
SHOW TAG VALUES FROM "cpu" WITH KEY = "cpu" WHERE host =~ /$server/
I use these quite a bit to filter disks, paths, interfaces etc in my dashboards. I have converted many that don’t have a WHERE clause with this:
import "influxdata/influxdb/schema"
schema.tagValues(bucket: v.bucket , tag: "host")