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 feature when multiple prometheus metric registration is needed #69

Merged
merged 3 commits into from
Feb 18, 2024

Conversation

Abdulsametileri
Copy link
Member

@Abdulsametileri Abdulsametileri commented Feb 18, 2024

If one application uses multiple kafka cronsumer 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.

@Abdulsametileri Abdulsametileri merged commit fe21d05 into main Feb 18, 2024
2 checks passed
@Abdulsametileri Abdulsametileri deleted the feature/metricprefix branch February 18, 2024 15:57
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