Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Public Interfaces

New Metrics

Each added metric will be on the client-level  and have the following tag:

  • type = client-metrics

The metrics for thread state will also contain an additional tag:

  • thread-id=[thread-id] 

The following table provides the new metric name, recording level, type, and description.  Additionally, the group, tag, and converted telemetry name are provided.

NameRecording LevelMetric TypeDescriptionGroupTagsTelemetry NameMBEAN Name
client-stateINFOGaugeThe current state of the Kafka Streams instance stream-metricsclient-id, process-idorg.apache.kafka.stream.client.statekafka.streams:type=stream-metrics,client-id=([-.\w]+), process-id=([-.\w]+)
thread
NameRecording LevelMetric TypeDescription
client-stateINFOGaugeThe current state of the Kafka Streams instance  StreamThread stream-thread-metricsthread-id, process-idorg.apache.kafka.stream.thread.thread.statekafka.streams:type=stream-thread-metrics,thread-id=([-.\w]+), process-id=([-.\w]+)
thread-stateINFOGaugeStringThe current state of the StreamThread stream-thread-metricsthread-idN/A JMX onlykafka.streams:type=stream-thread-metrics,thread-id=([-.\w]+)
recording-levelINFOGaugeIntegerThe level of metrics recordingstream-metricsclient-id, process-idorg.apache.kafka.stream.recording.levelkafka.streams:type=stream-metrics,client-id=([-.\w]+), process-id=([-.\w]+)

Values for client-state metrics

...

Recording levelMetric Value
INFO0
DEBUG1
TRACE2

Proposed Changes

These new metrics will be available at the INFO level.  Both the client-state  and thread-state will be updated to reflect the changes in the client or thread state.  The recording-level is determined on startup and contains the configured metrics recording level. 

...