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

Kostya Golikov commented on KAFKA-1197:
---------------------------------------

Is it really an issue to sum up offsets for topic's partitions? This will give 
you bytes (pre-0.8.x) / messages (post-0.8.x) count. 

> 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)

Reply via email to