Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public class StatsdMetricsReporter implements MetricsReporter {
public static final String STATSD_DIMENSION_ENABLED = "external.kafka.statsd.dimension.enabled";

private static final String METRIC_PREFIX = "kafka.";
private static final int POLLING_PERIOD_IN_SECONDS = 10;

private boolean enabled;
private final AtomicBoolean running = new AtomicBoolean(false);
Expand All @@ -73,7 +72,7 @@ public void init(List<KafkaMetric> metrics) {
kafkaMetrics = new HashMap<String, KafkaMetric>();

if (enabled) {
startReporter(POLLING_PERIOD_IN_SECONDS);
startReporter(pollingPeriodInSeconds);
} else {
log.warn("KafkaStatsDReporter is disabled");
}
Expand Down