[improve][broker] Add metrics related interfaces for BrokerInterceptor #20772
Labels
Stale
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Search before asking
Motivation
When I want to monitor the relevant data in the
BrokerInterceptor
, currently theBrokerInterceptor
does not provide relevant interfaces.I think providing such extensions is necessary.
Solution
https://github.com/apache/pulsar/blob/e96b3398912163eb6e0528c10aed3507c95952fd/pulsar-broker/src/main/java/org/apache/pulsar/broker/intercept/BrokerInterceptor.java
Add a interface, like this:
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGenerator.java
Lines 185 to 187 in e96b339
Then callback the
addCustomizeMetrics(stream, pulsar)
method here.This is just a draft.
Alternatives
No response
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: