Monitoring Listener Performance with multiple MeterRegistry beans #2105
-
Hi! Recently I've been looking for a way to monitor listener specific metrics and found a corresponding section in the docs (Monitoring Listener Performance) saying
This way of collecting listener metrics is particulary useful given that it is able to account for multiple types of listeners (e.g. declared with The corresponding implementation to be found in: The problem I faced is that in case when multiple registries are auto-configured for the application context, e.g. Prometheus + Graphite timers for metrics do not register themselves.This applies to any combination of monitoring systems providing more that one
I'm looking for an advice here. Is there anything obvious I'm missing? Is the only one way reasonable in here would be to patch Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think we could change it to detect if one of the registries is marked as |
Beta Was this translation helpful? Give feedback.
I think we could change it to detect if one of the registries is marked as
@Primary
.