codelipenghui opened a new pull request, #25105:
URL: https://github.com/apache/pulsar/pull/25105

   ## Description
   
   Fix the issue that the metric pulsar_ml_reads_inflight_bytes and 
pulsar_ml_reads_available_inflight_bytes are all 0 at the same time. The 
correct behavior should be if there is no inflight reads happened, the 
available inflight bytes should be the configured value from user.
   
   ## Changes
   - Initialize metrics in InflightReadsLimiter constructor when enabled.
   - Add testPrometheusMetrics to verify the fix.
   - Change Prometheus Gauges visibility for testing.


-- 
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