Skip to content

MetricConfig

Creating Instance

MetricConfig takes no arguments to be created.

MetricConfig is created when:

  • many places (FIXME)

RecordingLevel

MetricConfig uses INFO recording level by default (when created) that can be changed using recordLevel.

recordLevel

MetricConfig recordLevel(
  Sensor.RecordingLevel recordingLevel)

recordLevel sets the recordingLevel to the given RecordingLevel.

recordLevel is used when:

  • KafkaAdminClient is requested to createInternal
  • KafkaConsumer is requested to buildMetrics
  • KafkaProducer is created
  • KafkaStreams (Kafka Streams) is requested to getMetrics
  • StreamsMetricsImpl (Kafka Streams) is requested to addClientLevelImmutableMetric, addClientLevelMutableMetric, addStoreLevelMutableMetric
  • Server utility is used to buildMetricsConfig