spring-projects / spring-boot

Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.
https://spring.io/projects/spring-boot
Apache License 2.0
75.17k stars 40.68k forks source link

Stop disabling metrics export auto-configuration when related enable flag is disabled #14320

Open snicoll opened 6 years ago

snicoll commented 6 years ago

Relates to #13408

We also have one enabled flag per monitoring system we support. This one is different as there is a direct counter part in micrometer itself.

Right now, we back-off if the flag is set to false which means that we never effectively set the Micrometer flag to false (we just don't auto-configure anything). Given the scope of this flag, we should probably remove the condition.

/cc @jkschneider

snicoll commented 5 years ago

We've discussed this one on the team call and we're not sure what to do really. We should spend more time on this and perhaps introduce a more generic/friendly way of disabling auto-configurations without a link to the class itself.

snicoll commented 5 years ago

We've discussed this one and we're considering adding a convenient way of disabling auto-configurations. One idea was a way to name auto-configurations and have an automatic property being generated for each to be able to disable it.

There is also a slightly related conversation where auto-configurations could be grouped in "themes" and we could apply the same mechanism to easily exclude them.

We've decided to park this one for now.