pl.allegro.tech.hermes.consumers.config.MicrometerRegistryProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-consumers Show documentation
Show all versions of hermes-consumers Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.consumers.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import pl.allegro.tech.hermes.common.di.factories.MicrometerRegistryParameters;
import java.time.Duration;
import java.util.List;
@ConfigurationProperties(prefix = "consumer.metrics.micrometer")
public class MicrometerRegistryProperties implements MicrometerRegistryParameters {
private List percentiles = List.of(0.5, 0.99, 0.999);
private boolean zookeeperReporterEnabled = true;
private Duration reportPeriod = Duration.ofSeconds(20);
@Override
public List getPercentiles() {
return percentiles;
}
@Override
public boolean zookeeperReporterEnabled() {
return zookeeperReporterEnabled;
}
@Override
public Duration zookeeperReportPeriod() {
return reportPeriod;
}
public void setPercentiles(List percentiles) {
this.percentiles = percentiles;
}
public boolean isZookeeperReporterEnabled() {
return zookeeperReporterEnabled;
}
public void setZookeeperReporterEnabled(boolean zookeeperReporterEnabled) {
this.zookeeperReporterEnabled = zookeeperReporterEnabled;
}
public Duration getReportPeriod() {
return reportPeriod;
}
public void setReportPeriod(Duration reportPeriod) {
this.reportPeriod = reportPeriod;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy