I have a group in a game called “Planetside 2”. It has an API, and I would like to integrate it with grafana. I have tried to query it with 2 plugins (JSON, SimpleJson), and whenever I use SimpleJson it says “Expected response data to be array, got object.”
The plugins you listed requires you to host a custom backend. The API you’re using don’t implement the endpoints required by those plugins, which is why you’re getting errors.
However, I published a plugin today that might be helpful to you. It uses JSON Path to extract data from a JSON API.
Unfortunately, I tried the API you’re using and realized that the plugin doesn’t support query parameters at this point. I’ll try to see if I can figure that out.
Yes, sorry for the confusion. I had to add support for query variables for this to work. I’ve just published v0.2.0 that adds support for this. Can you update the plugin and try again?
@marcusolsson , i have installed the latest version 0.8.0 from the web-site. When i try to configure the JSON datasource in Grafana an error appears:
" An unexpected error happened
Details:
Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
in Unknown
in div
in t
in form
in div
in div
in t
in div
in div
in div
in t
in t
in div
in t
in t
in x
in ConnectWithCleanUp(Connect(t))
in r
in Unknown
in t
in Unknown
in h
in Unknown
in Unknown
in t
in t
in l
The “Minified React error” usually means that you’re attempting to load a plugin in an unsupported Grafana version. The recent versions of JSON API require at least Grafana 7.3. Could you try with a more recent Grafana version and see if it persists? Otherwise, please submit an issue on the project page.