← ZIO Kafka docs

ZioMetricsConsumerMetricsObserver

zio.kafka.consumer.metrics.ZioMetricsConsumerMetricsObserver
final class ZioMetricsConsumerMetricsObserver(consumerMetrics: ConsumerMetrics, metricLabels: Set[MetricLabel]) extends ConsumerMetricsObserver

A ConsumerMetricsObserver implementation that uses zio-metrics to collect observations.

Value parameters

consumerMetrics

the names, descriptions and histogram boundaries of all the metrics

metricLabels

the metric labels that are added to each metric

Attributes

Source
ZioMetricsConsumerMetricsObserver.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(metricLabels: Set[MetricLabel])

A ConsumerMetricsObserver implementation that uses zio-metrics to collect observations, using the default metric names, descriptions and histogram boundaries.

A ConsumerMetricsObserver implementation that uses zio-metrics to collect observations, using the default metric names, descriptions and histogram boundaries.

Value parameters

metricLabels

the metric labels that are added to each metric

Attributes

Source
ZioMetricsConsumerMetricsObserver.scala

Concrete methods

override def observeAggregatedCommit(latency: Duration, commitSize: Long): UIO[Unit]
override def observeCommit(latency: Duration): UIO[Unit]
override def observePoll(resumedCount: Int, pausedCount: Int, latency: Duration, pollSize: Int): UIO[Unit]
override def observeRebalance(currentlyAssignedCount: Int, assignedCount: Int, revokedCount: Int, lostCount: Int): UIO[Unit]