Skip to content

Commit 41e1f07

Browse files
committed
Disable metric exports by default
1 parent af0aa31 commit 41e1f07

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/main/java/eu/openanalytics/containerproxy/ContainerProxyApplication.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,15 @@ private static void setDefaultProperties(SpringApplication app) {
206206

207207
properties.put("spring.application.name", "ContainerProxy");
208208

209-
properties.put("management.metrics.export.defaults.enabled", "false");
209+
// Metrics configuration
210+
// ====================
211+
212+
// disable all supported exporters by default
213+
properties.put("management.metrics.export.prometheus.enabled", "false");
214+
properties.put("management.metrics.export.influx .enabled", "false");
215+
// Note: if we upgrade to Spring Boot 2.4.0 we can use properties.put("management.metrics.export.defaults.enabled", "false");
216+
217+
// ====================
210218

211219
// Health configuration
212220
// ====================

0 commit comments

Comments
 (0)