[ 
https://issues.apache.org/jira/browse/KAFKA-12428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17295791#comment-17295791
 ] 

Guozhang Wang commented on KAFKA-12428:
---------------------------------------

Thinking about this a bit, maybe it's better to have two metrics, 
"last-heartbeat-sent-seconds-ago" and "last-heartbeat-received-seconds-ago". 
The first one is useful to detect if client is blocked on sending hb, and the 
second one is useful to detect if broker has any issues (which should be less 
common).

> Add a last-heartbeat-seconds-ago metric to Kafka Consumer
> ---------------------------------------------------------
>
>                 Key: KAFKA-12428
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12428
>             Project: Kafka
>          Issue Type: Improvement
>          Components: consumer, streams
>            Reporter: Guozhang Wang
>            Priority: Major
>              Labels: newbie
>
> I have encountered several issues in the past where heartbeat requests are 
> not sent [1,2] (either in time, or ever), and today it is a bit hard to get 
> to that from the logs. I think it is better to add a metric as 
> "last-heartbeat-seconds-ago" where when rebalances were triggered we can 
> immediately find out if this is the root cause.
> 1. https://issues.apache.org/jira/browse/KAFKA-10793
> 2. https://issues.apache.org/jira/browse/KAFKA-10827



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to