-
Notifications
You must be signed in to change notification settings - Fork 671
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
fix: Use finite set of strings for HTTP metrics #4681
fix: Use finite set of strings for HTTP metrics #4681
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4681 +/- ##
===========================================
- Coverage 86.09% 8.20% -77.89%
===========================================
Files 404 403 -1
Lines 293062 287578 -5484
===========================================
- Hits 252312 23604 -228708
- Misses 40750 263974 +223224 ☔ View full report in Codecov by Sentry. |
5db87e9
to
488c44c
Compare
Added unit test for Also note that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very thorough! Thanks for much for taking the time to make these changes, it'll really help with our alerting and reducing false positives. Left a couple minor suggestions but otherwise LGTM
Co-authored-by: Charlie <[email protected]>
@wileyj What would it take to get a new version cut with this PR? It's not in 2.5.0.0.3. If a new version is coming soon, am fine with waiting. |
@CharlieC3 nothing planned immediately, but we can start prepping something - i know there are some improvements to the signer that may be useful to release as well. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
When sending metrics data to Prometheus, map URLs to a finite set of strings. This will reduce the number of unique strings the server has to keep track of. As an example, it might rewrite:
to
Applicable issues
Additional info (benefits, drawbacks, caveats)
NOTE: The test
net::stackerdb::tests::sync::test_stackerdb_replica_2_neighbors_1_chunk
is currently failing, but also fails inmaster
, meaning it was not broken by this PRdocs/rpc/openapi.yaml
andrpc-endpoints.md
for v2 endpoints,event-dispatcher.md
for new events)clarity-benchmarking
repobitcoin-tests.yml