pulsar-java-spring-boot-starter icon indicating copy to clipboard operation
pulsar-java-spring-boot-starter copied to clipboard

support metrics

Open crossoverJie opened this issue 1 year ago • 1 comments

image

Reference to the Go SDK implementation.

Monitor pulsar status on the application side using Prometheus and Grafana.

Some of the data is implemented through interceptors, so need to open the interceptor configuration.

pulsar.allow-interceptor=true

crossoverJie avatar Aug 19 '22 04:08 crossoverJie

Codecov Report

Merging #277 (ba6bd86) into master (71ae35c) will increase coverage by 2.18%. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #277      +/-   ##
============================================
+ Coverage     85.65%   87.83%   +2.18%     
- Complexity      162      181      +19     
============================================
  Files            19       21       +2     
  Lines           467      518      +51     
  Branches         26       26              
============================================
+ Hits            400      455      +55     
+ Misses           53       49       -4     
  Partials         14       14              
Impacted Files Coverage Δ
...ub/majusko/pulsar/consumer/ConsumerAggregator.java 92.66% <100.00%> (+0.27%) :arrow_up:
...ko/pulsar/consumer/DefaultConsumerInterceptor.java 62.96% <100.00%> (+12.96%) :arrow_up:
...java/io/github/majusko/pulsar/metrics/Metrics.java 100.00% <100.00%> (ø)
...o/github/majusko/pulsar/metrics/MetricsConfig.java 100.00% <100.00%> (ø)
...ko/pulsar/producer/DefaultProducerInterceptor.java 71.42% <100.00%> (+15.87%) :arrow_up:
...ithub/majusko/pulsar/producer/ProducerFactory.java 84.61% <100.00%> (+1.28%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Aug 19 '22 04:08 codecov[bot]