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

exclude urls #280

Open
cemo opened this issue Aug 9, 2021 · 3 comments
Open

exclude urls #280

cemo opened this issue Aug 9, 2021 · 3 comments

Comments

@cemo
Copy link
Contributor

cemo commented Aug 9, 2021

Issue description

I would like to exclude some of urls such as healthcheck or prometheus endpoints. These urls are creating noisy metrics. Is it possible to exclude them?

@arthemus
Copy link

I am in same situation here, I would like to exclude for example threaddump and others not necessary for my application.

@graemerocher
Copy link
Contributor

only way currently appears to be to set micronaut.metrics.http.path

Otherwise a PR would be needed to this type to allow configuring which URIs are included/excluded

@scprek
Copy link
Contributor

scprek commented Jan 30, 2024

Tracing has the exclusion support, I was hoping you could do Filter(/**,!/prometheus/**,!/health/**) or something but it still applies to everything. Maybe I just failed at the Ant Pattern Matching

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

4 participants