How to pass every HTTP request through Grafana backend?

I am developing a datasource plugin. I need to POST data to two separate servers. One POST to fetch token from a keystone server and the other POST to a query server for data retrieval.

Query server’s url is fetched from the Http settings’ url field i.e instanceSettings.url and keystone’s url is fetched from a form in the config html.

Looks like Grafana only proxies the requests to instanceSettings.url via the backend and request to other resources are sent via the browser. So in my case, request to keystone is sent via the browser.

How can I force Grafana to send every request via the backend?

You can’t, to support keystone auth would require backend changes

1 Like