|
37 | 37 | class MeterBindersConfiguration {
|
38 | 38 |
|
39 | 39 | @Bean
|
40 |
| - @ConditionalOnProperty(value = "spring.metrics.binders.jvmmemory.enabled", havingValue = "true", matchIfMissing = true) |
| 40 | + @ConditionalOnProperty(value = "spring.metrics.binders.jvmmemory.enabled", matchIfMissing = true) |
41 | 41 | @ConditionalOnMissingBean(JvmMemoryMetrics.class)
|
42 | 42 | public JvmMemoryMetrics jvmMemoryMetrics() {
|
43 | 43 | return new JvmMemoryMetrics();
|
44 | 44 | }
|
45 | 45 |
|
46 | 46 | @Bean
|
47 | 47 | @ConditionalOnMissingBean(LogbackMetrics.class)
|
48 |
| - @ConditionalOnProperty(value = "spring.metrics.binders.logback.enabled", havingValue = "true", matchIfMissing = true) |
| 48 | + @ConditionalOnProperty(value = "spring.metrics.binders.logback.enabled", matchIfMissing = true) |
49 | 49 | @ConditionalOnClass(name = "ch.qos.logback.classic.Logger")
|
50 | 50 | public LogbackMetrics logbackMetrics() {
|
51 | 51 | return new LogbackMetrics();
|
52 | 52 | }
|
53 | 53 |
|
54 | 54 | @Bean
|
55 |
| - @ConditionalOnProperty(value = "spring.metrics.binders.uptime.enabled", havingValue = "true", matchIfMissing = true) |
| 55 | + @ConditionalOnProperty(value = "spring.metrics.binders.uptime.enabled", matchIfMissing = true) |
56 | 56 | @ConditionalOnMissingBean(UptimeMetrics.class)
|
57 | 57 | public UptimeMetrics uptimeMetrics() {
|
58 | 58 | return new UptimeMetrics();
|
59 | 59 | }
|
60 | 60 |
|
61 | 61 | @Bean
|
62 |
| - @ConditionalOnProperty(value = "spring.metrics.binders.processor.enabled", havingValue = "true", matchIfMissing = true) |
| 62 | + @ConditionalOnProperty(value = "spring.metrics.binders.processor.enabled", matchIfMissing = true) |
63 | 63 | @ConditionalOnMissingBean(ProcessorMetrics.class)
|
64 | 64 | public ProcessorMetrics processorMetrics() {
|
65 | 65 | return new ProcessorMetrics();
|
|
0 commit comments