redpanda-data / kminion

KMinion is a feature-rich Prometheus exporter for Apache Kafka written in Go. It is lightweight and highly configurable so that it will meet your requirements.
MIT License
615 stars 123 forks source link

Enhancement Request: Add filtering to kafka_topic_log_dir_size_total_bytes Metric #236

Open selsabil94 opened 9 months ago

selsabil94 commented 9 months ago

The current implementation of the kafka_topic_log_dir_size_total_bytes metric lacks the ability to filter by topic name, similar to the existing functionality for the kafka_topic_info metric for example. This enhancement request aims to add this valuable filtering capability, providing users with the flexibility to filter exporting the metric based on topic name. Introduce regex for AllowedTopics and IgnoredTopics to the kafka_topic_log_dir_size_total_bytes metric that allow users to filter the results based on Kafka names will enhance the usefulness of the metric, especially in large Kafka deployments with numerous topics.