|
1 | 1 | /* |
2 | | - * Copyright 2012-2018 the original author or authors. |
| 2 | + * Copyright 2012-2019 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
@@ -87,7 +87,8 @@ public PropertiesMeterFilter propertiesMeterFilter(MetricsProperties properties) |
87 | 87 | } |
88 | 88 |
|
89 | 89 | @Configuration |
90 | | - @ConditionalOnProperty(value = "management.metrics.binders.jvm.enabled", matchIfMissing = true) |
| 90 | + @ConditionalOnProperty(value = "management.metrics.binders.jvm.enabled", |
| 91 | + matchIfMissing = true) |
91 | 92 | static class JvmMeterBindersConfiguration { |
92 | 93 |
|
93 | 94 | @Bean |
@@ -124,27 +125,31 @@ static class MeterBindersConfiguration { |
124 | 125 | "org.slf4j.LoggerFactory" }) |
125 | 126 | @Conditional(LogbackLoggingCondition.class) |
126 | 127 | @ConditionalOnMissingBean |
127 | | - @ConditionalOnProperty(value = "management.metrics.binders.logback.enabled", matchIfMissing = true) |
| 128 | + @ConditionalOnProperty(value = "management.metrics.binders.logback.enabled", |
| 129 | + matchIfMissing = true) |
128 | 130 | public LogbackMetrics logbackMetrics() { |
129 | 131 | return new LogbackMetrics(); |
130 | 132 | } |
131 | 133 |
|
132 | 134 | @Bean |
133 | | - @ConditionalOnProperty(value = "management.metrics.binders.uptime.enabled", matchIfMissing = true) |
| 135 | + @ConditionalOnProperty(value = "management.metrics.binders.uptime.enabled", |
| 136 | + matchIfMissing = true) |
134 | 137 | @ConditionalOnMissingBean |
135 | 138 | public UptimeMetrics uptimeMetrics() { |
136 | 139 | return new UptimeMetrics(); |
137 | 140 | } |
138 | 141 |
|
139 | 142 | @Bean |
140 | | - @ConditionalOnProperty(value = "management.metrics.binders.processor.enabled", matchIfMissing = true) |
| 143 | + @ConditionalOnProperty(value = "management.metrics.binders.processor.enabled", |
| 144 | + matchIfMissing = true) |
141 | 145 | @ConditionalOnMissingBean |
142 | 146 | public ProcessorMetrics processorMetrics() { |
143 | 147 | return new ProcessorMetrics(); |
144 | 148 | } |
145 | 149 |
|
146 | 150 | @Bean |
147 | | - @ConditionalOnProperty(name = "management.metrics.binders.files.enabled", matchIfMissing = true) |
| 151 | + @ConditionalOnProperty(name = "management.metrics.binders.files.enabled", |
| 152 | + matchIfMissing = true) |
148 | 153 | @ConditionalOnMissingBean |
149 | 154 | public FileDescriptorMetrics fileDescriptorMetrics() { |
150 | 155 | return new FileDescriptorMetrics(); |
|
0 commit comments