You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the datasource has one implementation client side that uses the Grafana datasource proxy, i.e. http://<host>/api/datasources/proxy/<ds identifier>/sql to fetch data. It also has a backend implementation which seems to only be used for supporting Grafana Alerting. Grafana also had this setup for built-in datasources, but most have now migrated to use the backend implementation from client side, i.e. /api/ds/query, and for Grafana Alerting.
Some customers have raised concerns regarding performance and loading a lot of data using this datasource and would like to be able to use Grafana Enterprise Query Caching, but it's currently not supported.
By making your datasource extend the DataSourceWithBackend instead of DataSourceApi it will support Grafana Enterprise Query Caching. Using DataSourceWithBackend will out of the box use /api/ds/query to fetch data, see example.
The text was updated successfully, but these errors were encountered:
Thanks for your advice.
We use DataSourceWithBackend api from the beginning. Front-end dashboard queries will request back-end plugins. But there will be performance issues when there are too many queries on the front-end dashboard. If there are too many query requests, the plug-in will report a 503 error when processing. So we now use the front-end implementation to handle front-end dashboard requests.
We will try DataSourceWithBackend again in the future
Currently the datasource has one implementation client side that uses the Grafana datasource proxy, i.e.
http://<host>/api/datasources/proxy/<ds identifier>/sql
to fetch data. It also has a backend implementation which seems to only be used for supporting Grafana Alerting. Grafana also had this setup for built-in datasources, but most have now migrated to use the backend implementation from client side, i.e. /api/ds/query, and for Grafana Alerting.Some customers have raised concerns regarding performance and loading a lot of data using this datasource and would like to be able to use Grafana Enterprise Query Caching, but it's currently not supported.
By making your datasource extend the
DataSourceWithBackend
instead of DataSourceApi it will support Grafana Enterprise Query Caching. UsingDataSourceWithBackend
will out of the box use /api/ds/query to fetch data, see example.The text was updated successfully, but these errors were encountered: