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

Add custom tags to micronaut metrics #779

Open
Dbasdeo opened this issue Jun 16, 2024 · 1 comment
Open

Add custom tags to micronaut metrics #779

Dbasdeo opened this issue Jun 16, 2024 · 1 comment

Comments

@Dbasdeo
Copy link

Dbasdeo commented Jun 16, 2024

Feature description

We have been trying to add custom tags to metrics and it is proving to be very difficult.

We would like to add a custom tag to timing metrics like server request timers and client request timers in order to associate data in a way that makes our graphs easier to read.

The only solution we have come up with so far is to disable the metric, pull out the code for the metrics and add a line for our metric.

It would be much easier if we could:

  • easily add custom tags to metrics
  • extend metrics classes
@graemerocher graemerocher transferred this issue from micronaut-projects/micronaut-core Jun 16, 2024
@hrothwell
Copy link
Contributor

hrothwell commented Jul 29, 2024

Have you looked at all at this?

Probably not entirely helpful given your use case at it sounds like you are specifically trying to add on to the built in server/client/etc metrics that might be generated by Micronaut (tbh I don't know exactly what/if things are auto set by Micronaut), but might still be helpful. See also this annotation that works alongside it

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

No branches or pull requests

2 participants