diff --git a/hermes-management/src/main/java/pl/allegro/tech/hermes/management/config/PrometheusConfiguration.java b/hermes-management/src/main/java/pl/allegro/tech/hermes/management/config/PrometheusConfiguration.java index 38eca0a4f6..80e79f4185 100644 --- a/hermes-management/src/main/java/pl/allegro/tech/hermes/management/config/PrometheusConfiguration.java +++ b/hermes-management/src/main/java/pl/allegro/tech/hermes/management/config/PrometheusConfiguration.java @@ -15,7 +15,7 @@ public class PrometheusConfiguration { @Bean - @ConditionalOnMissingBean + @ConditionalOnMissingBean(PrometheusMeterRegistry.class) public PrometheusMeterRegistry micrometerRegistry( MicrometerRegistryProperties properties, PrometheusConfig prometheusConfig) { return new PrometheusMeterRegistryFactory(properties, prometheusConfig, "hermes-management")