Allow to disable Micrometer metrics
See original GitHub issueWith Spring Cloud Stream Elmhurst.RC2, we have Micrometer configured out-of-the-box.
I would like to remove it, as we use Dropwizard Metrics - I don’t want to enter a discussion on which one is better, just to be able to disable Micrometer. For the record, I’ll also track this on a ticket (with specific details) on https://github.com/jhipster/generator-jhipster and I’ll link it to here.
I have two “normal” configurations for this:
- Exclude it in the dependencies: that works perfectly well with
org.springframework.boot:spring-boot-starter-actuator
but if I do it inorg.springframework.cloud:spring-cloud-stream
I have a
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'integrationManagementConfigurer' defined in class path resource [org/springframework/integration/config/IntegrationManagementConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.integration.support.management.IntegrationManagementConfigurer] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
- Disable it in the
application.yml
file using
management:
metrics:
enabled: false
This works well in Spring Boot, but is ignored by Spring Cloud Stream.
For me, both options should work for Spring Cloud Stream, like they do for Spring Boot.
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
Spring Boot Actuator/Micrometer Metrics Disable Some
Is there a way to turn off some of the returned metric values in Actuator/Micrometer? Looking at them now ...
Read more >57. Metrics - Spring
Having a dependency on micrometer-registry-{system} in your runtime classpath ... This allows you to see what metrics are collected in the metrics endpoint....
Read more >Micrometer Metrics - Quarkus
Micrometer provides an API that allows you to construct your own custom metrics. The most common types of meters supported by monitoring systems...
Read more >Quick Guide to Micrometer - Baeldung
CompositeMeterRegistry allows multiple registries to be added. It provides a solution to publish application metrics to various supported ...
Read more >Metrics using Micrometer | Eclipse Vert.x
You must enable metric collection in the Vert.x options. Vertx vertx = Vertx.vertx(new VertxOptions().setMetricsOptions ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it’s a temporary solution but that’s good for the moment - I mostly wanted that you are aware of the issue, and to be sure I wasn’t missing something. Thanks a lot!
Only when I add Spring Cloud Stream, otherwise that works very well.