Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6660

Monitoring number of messages expired due to retention policy

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: log, metrics
    • Labels:
      None

      Description

      I have not been able to find this out, but is there a way to monitor how many messages were expired based on the retention policy? If not, JMX metrics like this would be very useful for my team. I would like to be able to filter this by topic and broker. Something like:

      kafka.server:type=BrokerTopicMetrics,name=MessagesExpiredPerSec

       

      Additionally taking this one step further, it would be cool to be able to monitor how many messages a consumer group did not consume before they were expired.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgarbis Matt Garbis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: