Skip to content

MetricCollector

MetricCollector is an abstraction of metrics collectors.

Contract

aggregateStat

double aggregateStat(
  String name,
  boolean isError)

Used when:

stats

Collection<TopicSensors.Stat> stats(
  String topic,
  boolean isError)

Used when:

Implementations

errorRate

double errorRate()

errorRate is 0.0 by default.


errorRate is used when:

getGroupId

String getGroupId()

getGroupId is null (undefined) by default.


getGroupId is used when: