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
    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.
    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.
    addSensor(String name, Sensor.RecordingLevel recordingLevel)
    Generic method to create a sensor.
    addSensor(String name, Sensor.RecordingLevel recordingLevel, Sensor... parents)
    Generic method to create a sensor with parent sensors.
    Map<MetricName,? extends Metric>
    Get read-only handle on global metrics registry.
    void
    Remove a sensor.