You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
We can see that the Datadog agent is trying to connect to a service that doesn't exist:
2024-04-04 09:44:13 UTC | CORE | ERROR | (pkg/collector/worker/check_logger.go:70 in Error) | check:consul |
Error running check: [{"message": "HTTPConnectionPool(host='consul-server.consul.svc', port=8500):
Max retries exceeded with url: /v1/agent/metrics?format=prometheus
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb9db1b3d60>:
Failed to establish a new connection: [Errno -2] Name or service not known'))",
"traceback": "Traceback (most recent call last):
(...)
The actual service name is my-awesome-consul-server.consul.svc instead of consul-server.consul.svc
--->
Expected behavior
The annotations should use the correct service name.
The text was updated successfully, but these errors were encountered:
Community Note
Overview of the Issue
The Datadog autodiscovery annotations are hardcoding the server service name to
consul-server
(See https://github.com/hashicorp/consul-k8s/blob/main/charts/consul/templates/server-statefulset.yaml#L157 ). If we take a look to the server service, this should be{{ template "consul.fullname" . }}-server
Reproduction Steps
values.yml
:my-awesome-consul-server.consul.svc
instead ofconsul-server.consul.svc
--->
Expected behavior
The annotations should use the correct service name.
The text was updated successfully, but these errors were encountered: