← ZIO Kafka docs

ConsumerMetrics

zio.kafka.consumer.metrics.ConsumerMetrics
See theConsumerMetrics companion object
final case class ConsumerMetrics(pollCounter: Counter = ..., partitionsResumedInLatestPollGauge: Gauge[Int] = ..., partitionsPausedInLatestPollGauge: Gauge[Int] = ..., pollLatencyHistogram: Histogram[Duration] = ..., pollSizeHistogram: Histogram[Int] = ..., commitCounter: Counter = ..., commitLatencyHistogram: Histogram[Duration] = ..., aggregatedCommitCounter: Counter = ..., aggregatedCommitLatencyHistogram: Histogram[Duration] = ..., aggregatedCommitSizeHistogram: Histogram[Long] = ..., rebalanceCounter: Counter = ..., partitionsCurrentlyAssignedGauge: Gauge[Int] = ..., partitionsAssignedCounter: Counter = ..., partitionsRevokedCounter: Counter = ..., partitionsLostCounter: Counter = ..., pendingRequestsHistogram: Histogram[Int] = ..., pendingCommitsHistogram: Histogram[Int] = ..., queueSizeHistogram: Histogram[Int] = ..., queuePollsHistogram: Histogram[Int] = ..., allQueueSizeHistogram: Histogram[Int] = ..., subscriptionStateGauge: Gauge[Int] = ..., commandQueueSizeHistogram: Histogram[Int] = ..., commitQueueSizeHistogram: Histogram[Int] = ..., pollAuthErrorCounter: Counter = ...)

A description of all metrics that can be observed by the zio-kafka consumer.

The purpose of this class is to be a repository of metrics names/descriptions/boundaries, which can optionally be updated by the user.

Instances of this class can be provided to implementations of ConsumerMetricsObserver. This can be either the built-in ZioMetricsConsumerMetricsObserver or an alternative metrics observer implemented with Micrometer, Dropwizard, etc.

Activate a custom ConsumerMetricsObserver with ConsumerSettings.withMetricsObserver.

WARNING: this is an UNSTABLE API and may change in an incompatible way without notice in any zio-kafka version.

Attributes

Companion
object
Source
ConsumerMetrics.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala