You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new template variable with a name "host": show tag values FROM "something" with key = "host"
Then I created a new annotation: select value from "something" where host =~ /$host$/ and $timeFilter
When I enable it, I can see from the influxdb logs that it will be formated incorrectrly: SELECT value FROM testdb."default".something WHERE host =~ /{host1,host2}$/ AND time > now() - 1d
When I use the template with a WHERE condition on a graph, it it is formated correctrly. From the influxdb log: SELECT value FROM testdb."default".something WHERE host =~ /host1|host2$/ AND time > now() - 1d
The text was updated successfully, but these errors were encountered:
Got the same issue with the latest build for debian with ES as datasource in annotations.
It only happen when selecting multi values: { "fields":["date","_source"], "query":{ "filtered":{ "query":{ "bool":{ "should":[{ "query_string":{ "query":"host:/{host1,host2}/"} }] } }, "filter":{ "bool":{ "must":[{ "range":{ "date":{ "from":1460117264973,"to":1460119064973,"format":"epoch_millis" } } }] } } } }, "size":10000 }
I created a new template variable with a name "host":
show tag values FROM "something" with key = "host"
Then I created a new annotation:
select value from "something" where host =~ /$host$/ and $timeFilter
When I enable it, I can see from the influxdb logs that it will be formated incorrectrly:
SELECT value FROM testdb."default".something WHERE host =~ /{host1,host2}$/ AND time > now() - 1d
When I use the template with a WHERE condition on a graph, it it is formated correctrly. From the influxdb log:
SELECT value FROM testdb."default".something WHERE host =~ /host1|host2$/ AND time > now() - 1d
The text was updated successfully, but these errors were encountered: