-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grafana frontend error with aggregate operator $toString
#15
Comments
Sorry for the delayed response. This appears to be related to the variable replacement syntax, which, normally will leave "variables" alone if no variable with that name is defined, but given that this happens in Javascript, everything has a toString. I don't have a good solution right now, and I've not had a whole lot of time to look into it. Unfortunately, it seems that grafana doesn't support any sort of escaping: grafana/grafana#40603 . I'll likely need to add an option to disable variable replacements for these cases. As crazy as it sounds, you could try actually making a variable named "toString", and setting it to "$toString" and see if the replacement works. |
After spending some time investigating, this appears to be a bug within Grafana itself. I've submitted a bug which github has so helpfully linked above this post. Once that is closed, this issue should be resolved. I'll leave this open until then in case there are further developments. |
One admittedly rather unconventional workaround is to create a constant dollar=$ which is then prepended to |
I encountered an error when using some aggregate like this. The error occurred in Grafana frontend before sending any query to the backend.
I’m using the
v0.2.0+rc3
version and everything else works great except for this issue. It seems that the problem is related to thetoString
keyword. Whenever the field name contains the wordtoString
, it will throw this error.The text was updated successfully, but these errors were encountered: