Grafana can't connect to Azure Monitor - Bad Gateway

Having trouble connecting the Azure Monitor data source to grafana. I am getting a 502 bad gateway. I am guessing this has to do with our infrastructure being on private network sitting behind an azure firewall. Some proxy issue. However, I can’t seem to find any documentation on how to get past the issue.

I am on our jumpbox server: Windows Server 2016
I can successfully connect to the grafana server via SSH and through the browser at http://ip:3000.
I can login to the grafana server successfully.
However, trying to add the Azure Monitor data source is not successful.
The grafana server is a debain 10.7


Please check the following, seems related to your concern :

Good Luck

Hi - I think it is related. However, I don’t see what files need to have those variables added for a debian server. The folders/files are not consistent across operating systems.


I found this for Centos :

This is the correct solution on Centos 7:
Add to file: /etc/sysconfig/grafana-server


Reference: Grafana 2.0b https_proxy environment configuration · Issue #1691 · grafana/grafana · GitHub

Good Luck

There is no /etc/sysconfig in a debian server. I see a grafana.ini under /opt/bitnami/grafana/conf however, I am not sure this is the area to add the http_proxy variables.

When I add the variables I still get a bad gateway

You should replace proxy.domain by your proxy

what version of grafana are you using?

Grafana 7.3.7-0 (Debian 10)

can you upgrade

  1. List item

I believe 7.3 is the latest for Grafana?

[ 7.3.7](

  1. List item