Skip to content

Allow to use custom registerer for metrics #8

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

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

simonpasquier
Copy link
Contributor

It's a good practice that libraries don't impose the use of the global Prometheus registry. While convenient, it complicates the integration if the application using aysnc-router prefers to use a custom registry.

@simonpasquier
Copy link
Contributor Author

While tests exist, they aren't gating the pull request:

image

@ziccardi
Copy link
Contributor

ziccardi commented Apr 9, 2025

While tests exist, they aren't gating the pull request:

See #9

@simonpasquier simonpasquier force-pushed the allow-custom-registry branch from 8f5a5da to 9538228 Compare April 17, 2025 08:22
@simonpasquier
Copy link
Contributor Author

@tzvatot @ziccardi PR updated. Thanks for addressing my requests :)

@simonpasquier simonpasquier force-pushed the allow-custom-registry branch 2 times, most recently from 902bdf1 to 4d06e86 Compare April 17, 2025 09:52
@simonpasquier
Copy link
Contributor Author

@tzvatot @ziccardi the PR is ready for review again.

It's a good practice that libraries don't impose the use of the global
Prometheus registry. While convenient, it complicates the integration if
the application using aysnc-router prefers to use a custom registry.

This commit also adds unit tests for the metrics observer.

Signed-off-by: Simon Pasquier <[email protected]>
@simonpasquier simonpasquier force-pushed the allow-custom-registry branch from 4d06e86 to 97b2c61 Compare April 22, 2025 15:05
@simonpasquier simonpasquier requested a review from tzvatot April 22, 2025 15:06
@tzvatot
Copy link
Contributor

tzvatot commented Apr 23, 2025

LGTM

@tzvatot tzvatot merged commit eeb6fde into openshift-online:main Apr 23, 2025
2 checks passed
@simonpasquier simonpasquier deleted the allow-custom-registry branch April 24, 2025 09:21
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.

3 participants