Skip to main content

consumers_lags

Creates, updates, deletes, gets or lists a consumers_lags resource.

Overview

Nameconsumers_lags
TypeResource
Idconfluent.kafka.consumers_lags

Fields

NameDatatypeDescription
client_idstring
cluster_idstring
consumer_group_idstring
consumer_idstring
current_offsetinteger
instance_idstring
kindstring
laginteger
log_end_offsetinteger
metadataobject
partition_idinteger
topic_namestring

Methods

NameAccessible byRequired ParamsDescription
get_kafka_consumer_lagSELECTcluster_id, consumer_group_id, partition_id, topic_nameGenerally Available Available in dedicated clusters only Return the consumer lag on a partition with the given partition_id.
list_kafka_consumer_lagsSELECTcluster_id, consumer_group_idGenerally Available Available in dedicated clusters only Return a list of consumer lags of the consumers belonging to the specified consumer group.

SELECT examples

Generally Available Available in dedicated clusters only Return a list of consumer lags of the consumers belonging to the specified consumer group.

SELECT
client_id,
cluster_id,
consumer_group_id,
consumer_id,
current_offset,
instance_id,
kind,
lag,
log_end_offset,
metadata,
partition_id,
topic_name
FROM confluent.kafka.consumers_lags
WHERE cluster_id = '{{ cluster_id }}'
AND consumer_group_id = '{{ consumer_group_id }}';