DataDog / datadog-go

go dogstatsd client library for datadog
MIT License
353 stars 132 forks source link

k8s client connection fails when Datadog-agent pod restarts #311

Closed louiscb closed 4 months ago

louiscb commented 4 months ago

Similar to #210 except occurring on newer versions of the same technologies. On a K8s cluster I am running an application with this library communicating to a Datadog Agent on the same node. I use UDP by setting e.g statsd.New("HOST_IP:PORT", "prefix"). When the Datadog Agent restarts the metrics to Datadog stop.

I am using v5.5.0 of this lib, Cluster's Kubernetes version v1.28.9-eks and Dd agent v7.47.1. By restarting the application pod the connection works again with the newly restarted Datadog pod. Other non Go services are on the same cluster and don't have this issue.

louiscb commented 4 months ago

I think this is an issue with Kubernetes