In Grafana how do I deal with a flux field that has a # in its name? How do you escape things?
|> filter(fn: (r) => r["_field"] == "#_Active_session")
When you say Deal with what do you mean? AFAIK ‘#’ isnt a special charecter from a grafana UI POV
this should suffice
‘#’ means bookmark
Yeah. I don’t think that # shoudl be a special character but nothing comes through and I’m not sure why. # isn’t special to influxdb, anyway, but, the exact same data shows up on the influxdb explorer / chronograf. So something is choking and I"m 90% sure it’s grafana. I’ll try to prove it today.
It’s in the request for sure.
I know this because I chagned the query to use a regex without the # … and then it started working
|> filter(fn: (r) => r["_field"] =~ /_Active_session/)
So the problem is in the request path somehow