-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Actuator: support running multiple MetricsServices (aka consul/hystrix prevents dropwizard from loading) #5768
Comments
As far as I know consul doesn't require hystrix. It does require spring-cloud-netflix-core which brings in servo. You could disable
I wonder if this is a boot bug or a spring-cloud-netflix one? |
It is probably also a spring-cloud-consul bug, but I'd still like the option to use multiple metrics providers anyways (servo for circuit breakers, graphite or datadog for business metrics/alerting, etc).
|
This has been superseded by the planned move to Micrometer-based metrics (#9970) |
I encountered a curious behavior where when I included spring-cloud-starter-consul-discovery, my dropwizard metrics did not work. This is because the consul module required hystrix, which required servo, which loaded before
MetricsDropwizardAutoConfiguration
, and therefore prevented it from loading since there was already a bean of CounterService.class and GuageService.class loaded.All the interfaces in actuator seems to assume only one Counter/Gauge service is available. Instead it would be good to have a Counter/Guage registry and dispatch to all active Counter/Gauge services, so I can use features like hystrix/consul without preventing me from using the metrics library of my choice as well.
The text was updated successfully, but these errors were encountered: