GrafanaJsonDatasource
GrafanaJsonDatasource copied to clipboard
Dashboard does not load data when opening, refresh does not always work, two panels output different data
Hi, I asked this question on the Grafana forum and it seems other suggest it might be an issue with the Plugin and suggests I use another plugin. Hence, I wanted to atleast check this issue with you.
I have an API which returns JSON data. My data connection/dashboard:
-
Im connecting to the API path of where all my sensors are.
-
When in query of a dashboard I get the available metrics for either all sensors (*.metric) or an individual sensor (sensorname.metric).
-
I have created two panels of type “table” where I in the first one selected *.temperature and in the other selected *.humidity (same sensors have both metrics).
-
When in edit mode everything seems to work fine.
My issue: When loading a fresh start of the dashboard (which has these two panels) I get NoData in both.
-
After pressing the “refresh button” some data might get returned but not guaranteed (also inconsistent returns between the two panels).
-
If i go into edit mode of each panel the data seems to get queried and is visible when going back to dashboard.
-
However, the sensors being returned between the two panels are inconsistent, I get different sensors in the two panels.
-
After several attempts of going in/out of edit in each panel I might be lucky and retrieve data of the same sensors.
What might be causing this?
Edit: Grafana v.9.0.0 Plugin v.0.5.0
Did you check responses of requests the panels did to your backend?
I just checked, each object is there under "response" but the data delivered is an empty array for the objects which does not show up on the panel. What does this mean? That it is an issue with the API?
Yes, it's not related to the datasource.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has not seen any activity since it was marked stale. Closing.