我想将使节(作为istio-mesh的一部分)与datadog集成在一起,为此,我在应用程序部署中将datadog注释配置为
annotations:
ad.datadoghq.com/xxx.check_names: '["envoy"]'
ad.datadoghq.com/xxx.instances: '[{"stats_url": "http://%%host%%:15000/stats"}]'
ad.datadoghq.com/xxx.logs: ' [{"source":"{{ app_name }}", "service":"{{ isv_namespace }}"},{}]'
ad.datadoghq.com/xxx.init_configs: "{{ datadog }}"
但是这失败并显示以下错误
[ AGENT ] 2019-03-19 10:19:34 UTC | ERROR | (pkg/collector/py/datadog_agent.go:146 in LogMessage) | (envoy.py:73) | Error accessing Envoy endpoint `http://10.0.128.142:15000/stats`
[ AGENT ] Traceback (most recent call last):
[ AGENT ] File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/envoy/envoy.py", line 63, in check
[ AGENT ] stats_url, auth=auth, verify=verify_ssl, proxies=proxies, timeout=timeout
[ AGENT ] File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/api.py", line 75, in get
[ AGENT ] return request('get', url, params=params, **kwargs)
[ AGENT ] File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/api.py", line 60, in request
[ AGENT ] return session.request(method=method, url=url, **kwargs)
[ AGENT ] File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
[ AGENT ] resp = self.send(prep, **send_kwargs)
[ AGENT ] File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
[ AGENT ] r = adapter.send(request, **kwargs)
[ AGENT ] File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
[ AGENT ] raise ConnectionError(e, request=request)
[ AGENT ] ConnectionError: HTTPConnectionPool(host='10.0.128.142', port=15000): Max retries exceeded with url: /stats (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f4806b650>: Failed to establish a new connection: [Errno 111] Connection refused',))
代理无法通过默认proxyAdminPort(即istio中使用的15000)与特使进行通信
https://docs.datadoghq.com/integrations/envoy/#standard
所以我无法找到方法来配置istio的envoy部分以暴露端口15000,该端口当前可以在本地访问容器
。即
root@xxx-6f9654b4f7-zmvs4:/usr/local/tomcat# curl http://localhost:15000/stats
cluster.BlackHoleCluster.bind_errors: 0
cluster.BlackHoleCluster.lb_healthy_panic: 0
cluster.BlackHoleCluster.lb_local_cluster_not_ok: 0
cluster.BlackHole