Open joschi opened 1 year ago
https://github.com/redpanda-data/console/issues/83 describes a way for an approximate number of messages per partition by using the average message size (calculated by reading just some messages from the topic) and the partition sizes.
I think having it in the statistics is fine. I'm not sure it would be a good idea to approximate unless it is clearly indicated it is an approximation !
Describe the bug (Actual behavior)
When using topics with clean-up policy
COMPACT
(log.cleanup.policy=compact
) the Message Count metric on the topics overview page is incorrect.https://github.com/provectus/kafka-ui/blob/v0.6.0/kafka-ui-react-app/src/components/Topics/Topic/Overview/Overview.tsx#L19-L25
The code to calculate the message count (
SUM(partition.offsetMax - partition.offsetMin)
) only works on non-compacted topics (with cleanup policyDELETE
).Expected behavior
The Message Count metric on the topics overview page should either be correct or not shown at all for topics with cleanup policy
Set up
Kafka UI 0.6.0 using the official Docker image deployed as a container in Kubernetes (EKS).
Steps to Reproduce
log.cleanup.policy=compact
.Screenshots