Skip to content

Commit

Permalink
Specifying PrometheusConfig bean type
Browse files Browse the repository at this point in the history
  • Loading branch information
szczygiel-m committed Nov 22, 2024
1 parent f2474a8 commit 8d8ba56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public PrometheusMeterRegistry micrometerRegistry(
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean(PrometheusConfig.class)
public PrometheusConfig prometheusConfig(PrometheusProperties properties) {
return new PrometheusConfigAdapter(properties);
}
Expand Down

0 comments on commit 8d8ba56

Please sign in to comment.