Skip to content
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

Closed
joshwand opened this issue Apr 21, 2016 · 3 comments

Comments

@joshwand
Copy link

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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 21, 2016
@spencergibb
Copy link
Member

As far as I know consul doesn't require hystrix. It does require spring-cloud-netflix-core which brings in servo. You could disable org.springframework.cloud.netflix.metrics.servo.ServoMetricsAutoConfiguration via boot

@EnableAutoConfiguration(exclude={ServoMetricsAutoConfiguration.class})

I wonder if this is a boot bug or a spring-cloud-netflix one?

@philwebb philwebb added for: team-attention An issue we'd like other members of the team to review and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 21, 2016
@joshwand
Copy link
Author

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).

On Apr 21, 2016, at 2:31 PM, Spencer Gibb notifications@github.com wrote:

As far as I know consul doesn't require hystrix. It does require spring-cloud-netflix-core which brings in servo. You could disable org.springframework.cloud.netflix.metrics.servo.ServoMetricsAutoConfiguration via boot

@EnableAutoConfiguration(exclude={ServoMetricsAutoConfiguration.class})
I wonder if this is a boot bug or a spring-cloud-netflix one?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@philwebb philwebb added this to the 2.0.0 milestone Apr 27, 2016
@philwebb philwebb removed the for: team-attention An issue we'd like other members of the team to review label Apr 27, 2016
@wilkinsona
Copy link
Member

This has been superseded by the planned move to Micrometer-based metrics (#9970)

@wilkinsona wilkinsona removed this from the 2.0.0 milestone Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants