Skip to content

Commit

Permalink
Fixed issue where Spring was unable to find the PrometheusMeterRegist…
Browse files Browse the repository at this point in the history
…ry Bean (#1019)

Signed-off-by: graytaylor0 <[email protected]>
  • Loading branch information
graytaylor0 authored Feb 9, 2022
1 parent 69e1049 commit 57b403b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void configureMetricRegistry(final MeterRegistry meterRegistry) {
}

@Bean
public MeterRegistry prometheusMeterRegistry(final DataPrepperConfiguration dataPrepperConfiguration) {
public PrometheusMeterRegistry prometheusMeterRegistry(final DataPrepperConfiguration dataPrepperConfiguration) {
if (dataPrepperConfiguration.getMetricRegistryTypes().contains(MetricRegistryType.Prometheus)) {
final PrometheusMeterRegistry meterRegistry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT);
configureMetricRegistry(meterRegistry);
Expand Down

0 comments on commit 57b403b

Please sign in to comment.