CorpGlory / grafana-datasource-kit

Node.js library for running Grafana datasources on backend plus utils
MIT License
9 stars 3 forks source link

Receiving "Cannot read property 'queries' of undefined" while using PostgreSQL dashboard CorpGlory/grafana-data-exporter#23 #97

Closed sblrok closed 4 years ago

sblrok commented 4 years ago

https://github.com/CorpGlory/grafana-data-exporter/issues/23
Problem Library tried to send requests for an invalid url.
Also, data from the "datasource" object was lost
Solution
Changed url to "/api/tsdb/query"
Getting data from "target" object