-
Notifications
You must be signed in to change notification settings - Fork 19
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 total requests prometheus metric #420
Add total requests prometheus metric #420
Conversation
Codecov Report
@@ Coverage Diff @@
## master #420 +/- ##
==========================================
- Coverage 44.66% 44.64% -0.03%
==========================================
Files 101 101
Lines 3739 3741 +2
==========================================
Hits 1670 1670
- Misses 2021 2023 +2
Partials 48 48
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Could you provide an example of what data is tracked? (i.e. what it looks like at the prometheus endpoint) |
Has more detailed stats and better URL parsing
I switched to the premade middleware, since it has better URL parsing and more detailed metrics. How the metrics look like: https://github.com/766b/chi-prometheus#what-do-you-get |
Pull request checklist:
CHANGELOG.md
was updated, if applicableDescription
Adds an additional metric which tracks which top level routes are used how often. Not quiet happy with how the URL parsing works, but I was not able to find a better way with the std lib.
Closes #415