Skip to content

Support for MetricRegistry in Spring Boot 2? #11702

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

Closed
pluttrell opened this issue Jan 20, 2018 · 2 comments
Closed

Support for MetricRegistry in Spring Boot 2? #11702

pluttrell opened this issue Jan 20, 2018 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@pluttrell
Copy link

Spring Boot v1.5.x auto configured a MetricRegistry bean, with which developers could add their custom metrics to and were exposed on the actuator /metrics endpoint. This has worked very well for us.

Spring Boot v2 does not appear to auto configure a MetricRegistry bean. So without changes, when you startup you'll get a org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.codahale.metrics.MetricRegistry'.

I don't see references to this change in any of the 2.0.0.M1-M7 release notes, nor migration guide.. Is this just an oversight or did I miss something? I do see references to Micrometer, but nothing saying the previous support is no longer included.

Also, is there a way to manually enable the previous support?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 20, 2018
@snicoll
Copy link
Member

snicoll commented Jan 20, 2018

Duplicate of #10313

The previous support is no longer included.

@snicoll snicoll closed this as completed Jan 20, 2018
@snicoll snicoll added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 20, 2018
@wilkinsona
Copy link
Member

Boot's metrics being replaced with Micrometer is listed in the user-facing changes in M4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants