Hello. I believe my opensearch data is coming back as an array. I am not sure why, when checking my opensearch configuration I am certain that this data is of type “float”. When looking at the query inspector, I see that my result for “values” is something like Array[11], where 11 can be any value from -1 to 11.
Can someone give me any pointers as to why this data might be coming back as an array if it is indeed a float inside of opensearch?
Is this an issue with Grafana or an issue with my data source?
Example:
The comments I added are in opensearch. The issue I am having is that Grafana is not reading the field “values” as a number, it is reading them as an array.
I am not new to Grafana, only to opensearch. I will update the comments
What would be the benefit of using jsonata with ininfinity plugin over the opensearch plugin? I’ve looked through the documentation for both but I do not see what the benefit of this solution might be?
well for one thing, the current issue you are facing, can it be solved with opensearch plugin?. infinitiy for one thing solves your values array issue. you can do tons of stuff you cannot do in grafana nor in opensearch plugin
btw could there be a case where there could be more than one value in values array?
One last question, I see what you’re saying and I think this is the right approach to go. The only two things I am confused about is the process of querying opensearch using infinity plugin.
How do you use jsonata in conjunction with infinity plugin? I cannot find much documentation on it.
I have an example query here straight from my dev tools:
How would I put this into infinity plugin. I have tried a few different configurations but cannot figure it out. It does seem to work when using a simpler query such as: