grafana-infinity-datasource
grafana-infinity-datasource copied to clipboard
[Bug] Error when using capital letters in Summarize function of Json Backend Parser
Screenshots
Actually that was intentional... Docs are due to update.. sorry you had trouble and glad you figured out..
BTW, curious to see if any other issues with the summarize function.
I will leave this issue open till the docs updated.
Also special characters and space are supposed to be replaced with underscore.
Actually docs have slightly touched this already
Thanks for reply. I think this behavior is some kind of inconvenience. For example, if the column title is Chinese:
Yea.. that's a pain.. let me try to find a solution.
${column name} is better? Or something like %column name% to avoid confuse with Grafana variable gramma?
Ok.. this is now solved I guess.. refer backed parser docs on how to use it.
Example:
When specifying the field name, all special characters must be replaced with - and also transformed to lower case. Or the field name can also be specified within square brackets if they contain special characters. For example if the field name is Something Else!, then that can be specified like min(something-else-) or min([Something Else!]).
In summary, use square brackets around the field name
Thank you for your amazing work! @yesoreyeram