-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StatsD TCP connection does not recover #1212
Labels
Milestone
Comments
izeye
added a commit
to izeye/micrometer
that referenced
this issue
Feb 26, 2019
shakuzen
added
enhancement
A general enhancement
registry: statsd
A StatsD Registry related issue
labels
Sep 6, 2019
shakuzen
added a commit
that referenced
this issue
Jan 27, 2020
Upgrades to the latest version of reactor-core and reactor-netty. Uses a `DirectProcessor` instead of a `UnicastProcessor` that can only be subscribed to once. We need to be able to subscribe multiple times for reconnecting to a server with a new `TcpClient`. For multi-threaded publishing to the `Processor`, we use a `FluxSink` rather than calling `onNext` directly. Starting and stopping the registry should now work as expected and is tested. Unlike before, there is no buffering done in the `Processor`. If the UDP/TCP client or `lineSink` cannot keep up with the rate metrics are produced at, metric lines will be dropped rather than buffered indefinitely (potentially until the application runs out of memory). A mitigation when using the UDP/TCP client is to use the `BufferingFlux` which is enabled by default - it buffers metric lines in memory up to a configurable size/time before emitting to the UDP/TCP client. As a consequence, the queue size/capacity methods and metrics (`StatsdMetrics`) are no longer available. Resolves #1212 Resolves #1591 Resolves #1676 Resolves #1741 Supersedes #1251 Co-authored-by: Johnny Lim <izeye@naver.com>
@benzaita could you try with the latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Version 1.2.0
When the TCP connection (e.g. to Telegraf) drops the Netty TCP client does not recover it.
See this for a possible solution.
The text was updated successfully, but these errors were encountered: