codelipenghui opened a new issue #12991:
URL: https://github.com/apache/pulsar/issues/12991


   **Is your enhancement request related to a problem? Please describe.**
   
   Currently, we are able to get the backlog size of the topic by using 
`bin/pulsar-admin topics stats`, but we are not exposing the backlog size to 
the Prometheus metrics. The backlog size is very important for users to monitor 
the data deletion, the large backlog size will lead to the topic data will not 
being deleted. So it will very helpful for exposing the backlog size through 
the Prometheus endpoint so that users can add an alert very conveniently.
   
   Now, we have `pulsar_storage_backlog_size` which is aggregated at the 
namespace level, we should expose it to the topic level if the topic level 
metrics is enabled, and if the topic level metrics is enabled, we should not 
expose the namespace level `pulsar_storage_backlog_size` again to keep 
consistent with the Prometheus format.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to