Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Not sending metrics after stop and start of the StatsdMeterRegistry #1676

@uchandroth

Description

@uchandroth

Environment : spring-boot 2.2.0.RELEASE
micrometer-registry-statsd : 1.3.0 also tried with older versions
steps to replicate the issue:

  1. Once the application is started statsd metrics will be start pumping to stats daemon running on 8125 udp port
  2. invoke StatsdMeterRegistry.stop() --> which will shutdown the udp client
  3. invoke StatsdMeterRegistry.start() --> which will start the udp client. debug mode we can see that udp client status is started
    But statsd metrics will not be send.
    could you please help to understand the issue. Or is this the right way to reinitialise the connection

Background of the issue : we are using a stasd daemon with a dns name, if the deamon is restarted the ip address maybe different, because of the dns caching udp client will not be able to connect to the stasd daemon if the ip address is different.
We have tried setting networkaddress.cache.ttl=10 but it is not getting affected for the StatsdMeterRegistry UdpClient object

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA general bugregistry: statsdA StatsD Registry related issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions