Open JingnanJia opened 2 years ago
This is related to your Datadog proxy configuration. Endpoint "istiod.istio-system" is not into $$DD_PROXY_NO_PROXY. so dd agent tries to go through proxy to reach the endpoint and throws 403.
Check $DD_PROXY_NO_PROXY. It should contain ".svc.cluster.local" . Hence you can either configure your scrape endpoint as "istio.istio-system.svc.cluster.com" or add "istio.istio-system" to $DD_PROXY_NO_PROXY which will allow agent to connect to respective endpoint.
Running Checks :::
istio (3.15.0)
Describe what happened: When I installed istio on k8s and edited the conf.yaml file according to the configuration link(https://app.datadoghq.com/account/settings#integrations/istio)
[root@d]# kubectl get pod -n istio-system NAME READY STATUS RESTARTS AGE istio-egressgateway-585dfcbbdb-p5lnj 1/1 Running 0 24h istio-ingressgateway-6cd9bf697d-2zkr9 1/1 Running 0 24h istiod-c555c64c4-j5zrs 1/1 Running 0 24h
Datadog’s istio integration is reporting: Instance #istio:898bfcf1da407bd9[ERROR]: [{"message": "There was an error scraping endpoint http://istiod.istio-system:15014/metrics: HTTPConnectionPool(host='istiod.istio-system', port=15014): Max retries exceeded with url: /metrics (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb371e86370>: Failed to establish a new connection: [Errno -2] Name or service not known'))", "traceback": "Traceback (most recent call last):\n File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\", line 1071, in run\n self.check(instance)\n File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/openmetrics/v2/base.py\", line 67, in check\n raise_from(type(e)(\"There was an error scraping endpoint {}: {}\".format(endpoint, e)), None)\n File \"\", line 3, in raise_from\nrequests.exceptions.ConnectionError: There was an error scraping endpoint http://istiod.istio-system:15014/metrics: HTTPConnectionPool(host='istiod.istio-system', port=15014): Max retries exceeded with url: /metrics (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb371e86370>: Failed to establish a new connection: [Errno -2] Name or service not known'))\n"}]
k8s V1.16 istio V13.2
how to deal with this issue? thanks