The curl to the grafana proxy won’t really work because you need cookies and some headers for it to work, but the fact that the jsonplaceholder api returns data and your internal elastic returns 502 means that the problem is in your elastic endpoint and not the grafana proxy.
Once you manage to make curl work with your elastic endpoint you can be sure it is not a problem of the container accessing the resources.
Grafana should pick up the HTTPS_PROXY without problem and use it if it is defined.
I have one last question. My plugin has a backend part in Golang.
How to use the datasource.go file instead of the datasource.ts file ?
Is there a setting where I can do it ? My plugin looks like this one : datasource-http-backend. In which file can I switch from TS to GO ?
Hi @maximedousselaere there’s no such a thing as a datasource.go file and you still need a datasource.ts file even if your datasource is a backend datasource.