MetricCollector¶
MetricCollector is an abstraction of metrics collectors.
Contract¶
aggregateStat¶
double aggregateStat(
String name,
boolean isError)
Used when:
MetricCollectorsis requested to currentConsumptionRateByQuery and aggregateStat
stats¶
Collection<TopicSensors.Stat> stats(
String topic,
boolean isError)
Used when:
MetricCollectorsis requested to getStatsFor
Implementations¶
ConsumerCollectorProducerCollector- StreamsErrorCollector
errorRate¶
double errorRate()
errorRate is 0.0 by default.
errorRate is used when:
MetricCollectorsis requested to currentErrorRate
getGroupId¶
String getGroupId()
getGroupId is null (undefined) by default.
getGroupId is used when:
MetricCollectorsis requested to currentConsumptionRateByQuery