Interface StreamsMetrics


public interface StreamsMetrics
The Kafka Streams metrics interface for adding metric sensors and collecting metric values.
  • Method Summary

    Modifier and Type Method Description
    Sensor addLatencyRateTotalSensor​(String scopeName, String entityName, String operationName, Sensor.RecordingLevel recordingLevel, String... tags)
    Add a latency, rate and total sensor for a specific operation, which will include the following metrics: average latency max latency invocation rate (num.operations / seconds) total invocation count Whenever a user records this sensor via Sensor.record(double) etc, it will be counted as one invocation of the operation, and hence the rate / count metrics will be updated accordingly; and the recorded latency value will be used to update the average / max latency as well.
    Sensor addRateTotalSensor​(String scopeName, String entityName, String operationName, Sensor.RecordingLevel recordingLevel, String... tags)
    Add a rate and a total sensor for a specific operation, which will include the following metrics: invocation rate (num.operations / time unit) total invocation count Whenever a user records this sensor via Sensor.record(double) etc, it will be counted as one invocation of the operation, and hence the rate / count metrics will be updated accordingly.
    Sensor addSensor​(String name, Sensor.RecordingLevel recordingLevel)
    Generic method to create a sensor.
    Sensor addSensor​(String name, Sensor.RecordingLevel recordingLevel, Sensor... parents)
    Generic method to create a sensor with parent sensors.
    Map<MetricName,​? extends Metric> metrics()
    Get read-only handle on global metrics registry.
    void removeSensor​(Sensor sensor)
    Remove a sensor.