question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to disable Micrometer metrics

See original GitHub issue

With 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:

  1. Exclude it in the dependencies: that works perfectly well with org.springframework.boot:spring-boot-starter-actuator but if I do it in org.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]
  1. 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:closed
  • Created 6 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jduboiscommented, Mar 2, 2018

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!

1reaction
jduboiscommented, Mar 2, 2018

Only when I add Spring Cloud Stream, otherwise that works very well.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found