Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding metric prefix config when multiple prometheus metric reg… #86

Closed

Conversation

Abdulsametileri
Copy link
Member

If one application uses multiple kafka konsumer instances, they cannot use Prometheus metrics because they have collusion, their names are same. To prevent this kind of situation, we enable a metricPrefix config.

In prometheus, it is not possible to register exact two metrics. Prometheus gives panic: duplicate metrics collector registration attempted error message.

Copy link

codecov bot commented Jan 6, 2024

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (f5d385a) 36.89% compared to head (e5deb08) 38.54%.

Files Patch % Lines
consumer_base.go 0.00% 7 Missing ⚠️
collector.go 66.66% 3 Missing ⚠️
consumer_config.go 0.00% 3 Missing ⚠️
batch_consumer.go 0.00% 2 Missing ⚠️
consumer.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v2      #86      +/-   ##
==========================================
+ Coverage   36.89%   38.54%   +1.65%     
==========================================
  Files          19       19              
  Lines         702      716      +14     
==========================================
+ Hits          259      276      +17     
+ Misses        436      433       -3     
  Partials        7        7              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Abdulsametileri Abdulsametileri deleted the feature/resolving-multiple-consumer-http-issue branch February 18, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant