Skip to content

Commit

Permalink
Specifying PrometheusMeterRegistry bean type
Browse files Browse the repository at this point in the history
  • Loading branch information
szczygiel-m committed Nov 22, 2024
1 parent f4099e4 commit f2474a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f2474a8

Please sign in to comment.