worldPing: 502 bad gateway

I’m unable to finish my configuration of worldPing since there are some issues traversing our squid proxy.
I first tried to install worldPing using grafana-cli without success, then I configured http_proxy & https_proxy in /etc/profile. After that installing worldPing and restart of grafana went without any error message. Then upon entering my apiKey I get a message saying unexpected error. And I can also see in the grafana log:

t=2019-03-18T12:01:53+0100 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/api/plugin-proxy/raintank-worldping-app/api/v2/endpoints status=502 remote_addr=10.104.55.207 time_ms=30010 size=0 referer="http://server:3000/d/2tGr_dqiz/worldping-home?orgId=1"

I can also see by the network traffic in my browser that it gets stuck on endpoints & org.

Modify the systemd service file for grafana.

The solution should be something like this:

[Service]
Environment=“HTTP_PROXY=http://proxy.server:port”
Environment=“HTTPS_PROXY=http://proxy.server:port”

This should ensure that systemd fixes the proxy vars for this process and then allows worldPing to function as expected.