Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Kubernetes infra agent proxy connection issue


#1

Installed newrelic-infrastructure-k8s on a kubernetes cluster and we are having proxy problem with Infra K8 agent. Agents are created successfully but unable send any data to infra-api. We see this exception in newrelic infra agent pod log.
time=“2018-08-02T18:37:06Z” level=warning msg=“network error waiting for endpoint, retrying” error=“Head https://infra-api.newrelic.com: proxyconnect tcp: dial tcp :80: getsockopt: connection refused”
time=“2018-08-02T18:37:16Z” level=debug msg=“URL Error detected, may be configuration problem or network connectivity issue”

Here all we tried.

  1. Proxy is configured correct and we do see the proxy setting reflected in pod agent log.
    ubuntu@ip-10-123-123.123:~$ kubectl logs newrelic-infra-6xkh5
    time=“2018-08-02T18:37:06Z” level=debug msg=“Using collector URL: https://infra-api.newrelic.com
    time=“2018-08-02T18:37:06Z” level=info msg=“Using proxy address from config file: http:://proxy.xxxx.xxxxx.com:8099”

  2. Infra-api.newrelic.com and api.newrelic.com are whitelisted and when we do CURL we are getting valid response.
    curl -X GET
    https://infra-api.newrelic.com/v2/alerts/conditions/101
    -H 'x-api-key:xxxxxxxxxxxxxxxxx’
    –proxy http://proxy.xxx.xxxxx.com:8099

Please share some insight what is going wrong here and what else we can try to see newrelic k8 infra data.


#2

Hi @Satyapal.Guduru,

We noticed from the info message Using proxy address from config file: http:://proxy.xxxx.xxxxx.com:8099” the proxy URL has a duplicate :: right after http.
Could you check the config file and validate if that is in fact the case?

If so, removing one of the colon should do the trick.

Let us know how it works out for you.

Cheers,