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

   [PIP-264](https://github.com/apache/pulsar/blob/master/pip/pip-264.md)
   
   ### Motivation
   
   Using OpenTelemetry, exposes the current consumer-level metrics emitted by 
the broker and described in the 
[doc](https://pulsar.apache.org/docs/next/reference-metrics/#consumer-metrics).
   
   ### Modifications
   
   Similar to topic metrics PR https://github.com/apache/pulsar/pull/22467, 
navigate all the current consumers connected to the broker and expose their 
respective metrics in OpenTelemetry format.
   
   The metric details can be consulted in the doc PR: 
https://github.com/apache/pulsar-site/pull/896. Prometheus metric 
`pulsar_consumer_blocked_on_unacked_messages` has been dropped in favor of 
OpenTelemetry boolean attribute `pulsar.consumer.blocked` on metric 
`"pulsar.broker.consumer.message.unack.count`, as these values are tightly 
related.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change added tests and can be verified as follows:
   
     - Added test 
`org.apache.pulsar.broker.stats.OpenTelemetryConsumerStatsTest#testMessagingMetrics`,
 verifying all the new metrics.
   
   ### Does this pull request potentially affect one of the following parts:
   
   - [ ] Dependencies (add or upgrade a dependency)
   - [ ] The public API
   - [ ] The schema
   - [ ] The default values of configurations
   - [ ] The threading model
   - [ ] The binary protocol
   - [ ] The REST endpoints
   - [ ] The admin CLI options
   - [x] The metrics: _As described above_
   - [ ] Anything that affects deployment
   
   ### Documentation
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [x] `doc-required` https://github.com/apache/pulsar-site/pull/896
   - [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: https://github.com/dragosvictor/pulsar/pull/24


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