CloudWatch + proxy problem

I am new to Grafana 5.1.3 and AWS. Does anyone have any experience with the following error? I get it when trying to Save & Test my CloudWatch data source. I am on GovCloud and behind a corporate proxy.

Thanks so much!

t=2018-06-14T18:58:31+0000 lvl=eror msg=“Metric request error” logger=context userId=1 orgId=1 uname=admin error=“Failed to call cloudwatch:ListMetrics, RequestError: send request failed\ncaused by: Post dial tcp: lookup on no such host”

Running 5.2.0-beta1 manually works for me. Is it because of this 5.2.0 fix?

Login: Use proxy server from environment variable if available #9703, thx @iyeonok

It seems that it works if I just run from .tar.gz but does not work from yum install and service grafana-server start. Is there somewhere in a config that I need to put my proxy settings when the service runs???

Problem resolved for me now. I just had to add the following to my /etc/sysconfig/grafana-server

export http_proxy=http://myproxy:80
export https_proxy=http://myproxy:80
export no_proxy=‘host1, host2, host3, etc’

1 Like