[
https://issues.apache.org/jira/browse/KAFKA-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869555#comment-13869555
]
Hanish Bansal commented on KAFKA-1197:
--------------------------------------
Not an issue. In case kafka is not restarted we can get idea of message count
using "MessageIn" metrix. But all metrics are reset to zero when kafka is
restarted so its not possible to see message count stored in kafka after
restart kafka node. So there can be some script which can give count of
messages stored in a topic.
> Count of bytes or messages of a topic stored in kafka
> -----------------------------------------------------
>
> Key: KAFKA-1197
> URL: https://issues.apache.org/jira/browse/KAFKA-1197
> Project: Kafka
> Issue Type: New Feature
> Components: core
> Affects Versions: 0.7.2, 0.8.0
> Reporter: Hanish Bansal
> Priority: Minor
>
> There should be direct way of measuring count of messages or bytes for a
> topic stored in Kafka.
> There are already some very useful metrics like byteRate and messageRate
> using what we can see count of bytes/messages coming into Kafka broker.
> I was looking for some jmx metrics that can give count of messages/bytes
> stored in kafka.
> If we look into data stores like hbase we can see how many messages are
> stored in hbase or if we look into search engine like elasticsearch then also
> we can see how many messages are stored/indexed in elasticsearch. In similar
> way i was expecting that there should be some way to see count of messages
> or bytes for a topic stored in kafka without using any external tool.
> It will be really helpful if there is some support for this using some jmx
> metric or by script.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)