Thanks for your reply, Weichu. How about directly count the messages that are sent to users instead of their committed offsets ?
Weichu Liu <wei...@indeed.com.invalid> 于2020年4月14日周二 下午12:19写道: > This is because of Kafka consumer's fetch model -- a consumer can > completely control how the committed offset moves, even resetting them > anywhere. > > Under these circumstances, MessagesOutPerSec is meaningless. > > On Mon, Apr 13, 2020 at 11:38 AM 张祥 <xiangzhang1...@gmail.com> wrote: > > > Hi, > > > > I am wondering why there isn't a metric called MessagesOutPerSec in Kafka > > JMX metrics to describe how many messages are consumed by clients and > > fetched by followers per second since there are already metrics like > > MessagesInPerSec, BytesInPerSec and BytesOutPerSec. Thanks. > > >