Per-topic consumer lag for a destination
Current consumer lag per topic (default), or lag at a point in time when at is given. Values are totals: one sample per partition, summed per topic and across topics, so they can be reconciled with alerts. at within the last 2 days is served at minute resolution, within 14 days at hour resolution; older or future values return HTTP 400. When no sample exists near at the response carries resolution: null and a message instead of zeros. latency_ms is best-effort and only available in current mode. at without a timezone is treated as UTC. Destinations list every topic their consumer group reports, including topics without a stored record.
/destinations/{destination_id}/lagAuthorizationBearer token · headerrequireddestination_idstringrequiredatstring<date-time>Point in time (ISO 8601). Omit for current lag.
topic_namestringCase-insensitive substring filter on the topic name
sortstringlagnamelatencysort_dirstringascdescpageintegerpage_sizeintegerinclude_partitionsbooleanReturn the per-partition breakdown for each topic
Successful Response
entity_typestringrequiredentity_idstringrequiredconnector_namestringrequiredsupportedbooleanrequiredFalse for connectors that expose no consumer lag (kafkadirect)
modestringrequiredcurrenthistoricalrequested_atstring<date-time> | nullEcho of the at query parameter
Show propertiesHide properties
string<date-time>nullas_ofstring<date-time> | nullObservation time actually used for the values
Show propertiesHide properties
string<date-time>nullresolutionstring | nullraw (current), minute (<= 2d), hour (<= 14d); null when no data was found
Show propertiesHide properties
stringnullstalebooleanrequiredCurrent mode: newest sample is older than the stale threshold or missing
messagestring | nullHuman-readable note when data is missing or unsupported
Show propertiesHide properties
stringnulloverallLagOverallResrequiredShow propertiesHide properties
lagintegerrequiredTotal lag across every topic and partition
latency_msinteger | nullWorst partition latency across topics; current mode only
Show propertiesHide properties
integernulltopic_countintegerrequiredTopics resolved for the entity (before topic_name filtering)
topics_with_lagintegerrequiredTopics whose lag is > 0
topicsLagTopicRes[]requiredShow propertiesHide properties
LagTopicRestopicstringrequiredDisplay name: the stored topic_id when known, otherwise the Kafka label
topic_idstring | nulltopics collection id when the topic has a record
Show propertiesHide properties
stringnullkafka_topicstringrequiredTopic label as written by the JMX scrape (dots replaced by underscores)
producer_typestring | nullsources | transforms | null when unknown
Show propertiesHide properties
stringnulllagintegerrequiredSum of partition lag, one value per partition
sharenumberrequiredlag / overall.lag, 0 when overall is 0
partition_countintegerrequiredmax_partition_lagintegerrequiredlatency_msinteger | nullWorst partition latency; current mode only
Show propertiesHide properties
integernullpartitionsLagPartitionRes[] | nullOnly with include_partitions=true
Show propertiesHide properties
LagPartitionRespartitionstringrequiredlagintegerrequiredRecords behind the log end offset for this partition
latency_msinteger | nullWall-clock age of the oldest unconsumed record
Show propertiesHide properties
integernullnulltotalintegerrequiredTopics matching the filter, before pagination
pageintegerrequiredpage_sizeintegerrequiredValidation Error
detailValidationError[]Show propertiesHide properties
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
string | integerstringintegermsgstringrequiredtypestringrequiredinputanyctxobject