# CloudWatch + proxy problem

**URL:** <https://community.grafana.com/t/cloudwatch-proxy-problem/8095>\
**Category:** General\
**Created:** [June 14, 2018, 7:05pm UTC](https://community.grafana.com/t/cloudwatch-proxy-problem/8095 "2018-06-14T19:05:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mortac888](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mortac888](https://community.grafana.com/u/mortac888)\
**Post date:** [June 14, 2018, 7:05pm UTC](https://community.grafana.com/t/cloudwatch-proxy-problem/8095/1 "2018-06-14T19:05:59Z")

</div>

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 [https://monitoring.us-gov-west-1.amazonaws.com/:](https://monitoring.us-gov-west-1.amazonaws.com/:) dial tcp: lookup [monitoring.us-gov-west-1.amazonaws.com](http://monitoring.us-gov-west-1.amazonaws.com) on 10.250.0.10:53: no such host”

---

<div class="post-metadata">

**Author:** ![mortac888](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mortac888](https://community.grafana.com/u/mortac888)\
**Post date:** [June 14, 2018, 7:52pm UTC](https://community.grafana.com/t/cloudwatch-proxy-problem/8095/2 "2018-06-14T19:52:55Z")

</div>

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

> <https://github.com/grafana/grafana/issues/9703>
>
> Please include this information:
> \- What Grafana version are you using?
> 4.6.0
> …- What datasource are you using?
> Graphite
> \- What OS are you running grafana on?
> CentOS 7.4
> \- What did you do?
> Upgraded from 4.5.2 to 4.6.0. No settings were changed.
> \- What was the expected result?
> I should be able to click the login with google button and sign in.
> \- What happened instead?
> I went to sign in with Google auth and get an error: login.OAuthLogin(NewTransportWithCode)
> 
> I manage my Grafana install via Puppet and did nothing other than rev the version. So all of my configs are exactly the same.
> 
> I have http\_proxy, https\_proxy, and no\_proxy defined in /etc/sysconfig/grafana-server
> 
> I verified that the running process has these set in it's environment by looking at:
> cat /proc/$(pgrep grafana-server)/environ
> 
> Relevant log line:
> t=2017-10-27T12:36:22-0700 lvl=eror msg=login.OAuthLogin(NewTransportWithCode) logger=context userId=0 orgId=0 uname= error="Post https://accounts.google.com/o/oauth2/token: dial tcp 216.58.216.141:443: getsockopt: connection refused"
> 
> If I revert back to 4.5.2 everything works fine.

---

<div class="post-metadata">

**Author:** ![mortac888](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mortac888](https://community.grafana.com/u/mortac888)\
**Post date:** [June 15, 2018, 3:07pm UTC](https://community.grafana.com/t/cloudwatch-proxy-problem/8095/3 "2018-06-15T15:07:28Z")

</div>

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???

---

<div class="post-metadata">

**Author:** ![mortac888](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mortac888](https://community.grafana.com/u/mortac888)\
**Post date:** [June 15, 2018, 7:52pm UTC](https://community.grafana.com/t/cloudwatch-proxy-problem/8095/4 "2018-06-15T19:52:43Z")

</div>

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’
