We have many measurements starting with say for an example “alert”. I am trying to regex with “alert” in flux language. but it is not working.
Influxdb version: 1.7.2
curl localhost:8086/api/v2/query -XPOST -sS -H ‘accept:application/csv’ -H ‘content-type:application/vnd.flux’ -d ‘from(bucket:“gs”) |> range(start:-5h) |> filter(fn:(r) => r._measurement == "/^alert(.*)/)’