Skip to content

Commit

Permalink
Fix prometheus config
Browse files Browse the repository at this point in the history
  • Loading branch information
faderskd committed Aug 30, 2023
1 parent 9c6a24c commit 00f2b9e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public PrometheusMeterRegistry micrometerRegistry(MicrometerRegistryProperties p
prometheusConfig, "hermes-management").provide();
}

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

public static class PrometheusMeterRegistryFactory {
private final MicrometerRegistryProperties parameters;
private final PrometheusConfig prometheusConfig;
Expand Down

0 comments on commit 00f2b9e

Please sign in to comment.