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

Provide a way to customize quarkus' micrometer MeterRegistry/CompositeMeterRegistry #32996

Closed
manofthepeace opened this issue Apr 28, 2023 · 2 comments · Fixed by #34573
Closed
Labels
area/metrics kind/enhancement New feature or request
Milestone

Comments

@manofthepeace
Copy link
Contributor

Description

We use quarkus-micrometer-registry-prometheus and it took us a long (very long) while to realize we had an issue with some of our metrics, because we do not get the micrometer errors via its MeterRegistry.

We found out about our issue by adding a onMeterRegistrationFailed listener to the quarkus' CompositeMeterRegistry.

To add that listener we had to modify and injecter MeterRegistry in a startup bean so it can be done early enough.

It would be nice to have a way to tweak the CompositeMeterRegistry out of the box so we can modify it's configuration.

Implementation ideas

No response

@manofthepeace manofthepeace added the kind/enhancement New feature or request label Apr 28, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Apr 28, 2023

/cc @brunobat (micrometer), @ebullient (micrometer)

geoand added a commit to geoand/quarkus that referenced this issue Jul 6, 2023
This is done via the new `MeterRegistryCustomizer` interface
the implementations of which are meant to be registered as
CDI beans.

Closes: quarkusio#32996
@geoand
Copy link
Contributor

geoand commented Jul 6, 2023

#34573 is what I have in mind

geoand added a commit to geoand/quarkus that referenced this issue Jul 6, 2023
This is done via the new `MeterRegistryCustomizer` interface
the implementations of which are meant to be registered as
CDI beans.

Closes: quarkusio#32996
geoand added a commit to geoand/quarkus that referenced this issue Jul 7, 2023
This is done via the new `MeterRegistryCustomizer` interface
the implementations of which are meant to be registered as
CDI beans.

Closes: quarkusio#32996
geoand added a commit that referenced this issue Jul 7, 2023
Introduce a way to completely customize MeterRegistry
@github-project-automation github-project-automation bot moved this from Todo to Done in Quarkus Roadmap/Planning Jul 7, 2023
@quarkus-bot quarkus-bot bot added this to the 3.3 - main milestone Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics kind/enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants