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

[ENHANCEMENT] Inject the same prom registry in the metrics api than in the echo server #202

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

Nexucis
Copy link
Member

@Nexucis Nexucis commented Apr 17, 2024

In the echo server, it's possible to inject a custom Prometheus metrics registry. But if it was used, then metrics collected wasn't exposed in /metrics since the Metric API didn't consider this custom metrics registry.

This PR aims to fix that. But in the meantime it introduced a breaking change ... If someone has a better idea, I would be glad to hear it

@Nexucis Nexucis force-pushed the nexucis/fix-prom-registry branch from 240b603 to 946c8fa Compare April 17, 2024 08:01
@Nexucis Nexucis changed the title [BREAKINGCHANGE] Inject the same prom registry in the metrics api than in the echo server [ENHANCEMENT] Inject the same prom registry in the metrics api than in the echo server Apr 17, 2024
app/app.go Outdated Show resolved Hide resolved
app/app.go Show resolved Hide resolved
@Nexucis Nexucis merged commit 3b19519 into main Apr 17, 2024
4 checks passed
@Nexucis Nexucis deleted the nexucis/fix-prom-registry branch April 17, 2024 09:25
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.

2 participants