hangc0276 opened a new pull request #6615: Export ManagedLedgerCache metric to 
prometheus
URL: https://github.com/apache/pulsar/pull/6615
 
 
   ### Motivation
   The managed ledger read cache monitor metric is export via 
`/admin/broker-stats/metrics` with json format, it is hard to parse, collect 
and display, what's more the read cache is a very import module for message 
consuming throughput and latency. So collect and display the read cache metrics 
is extremely urgent for pulsar in production.
   
   ### Changes 
   I parse the json format metric to prometheus message type and export to 
prometheus monitor port, so those metrics can be displayed in grafana.
   Some of the metric name contains dot, but promethues metric name rule only 
accept `[a-zA-Z0-9_:]`, so i replace `dot` to `:` in metric name to avoid 
prometheus parse error

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to