java-dogstatsd-client icon indicating copy to clipboard operation
java-dogstatsd-client copied to clipboard

Metrics not sent when the stasD server changes the IP

Open ghost opened this issue 7 years ago • 4 comments

I have the statsd server running in kubernetes. Every time I restart the statsd container it gets a new IP and it doesn't receive any messages. If I restart the application that sends the metrics, it's working but I would like a 'reconnect' mechanism on the client.

ghost avatar Jul 31 '17 13:07 ghost

@razvandarju do you managed to solve the problem?

irvifa avatar Oct 19 '17 06:10 irvifa

It's probably this: https://github.com/DataDog/dogstatsd-csharp-client/issues/64

truthbk avatar Sep 14 '18 11:09 truthbk

@irvifa are you still encountering this issue

irabinovitch avatar Mar 30 '19 01:03 irabinovitch

@irabinovitch I managed to solve this by using the following mechanism:

   env:
        - name: DATADOG_AGENT_SERVICE_HOSTNAME
          value: <your-datadog-deployment>.<your-namespace>.svc.cluster.local

Pass this as statsdHost

irvifa avatar Apr 03 '19 03:04 irvifa