-
Notifications
You must be signed in to change notification settings - Fork 75
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
Needed changes for metrics improvements #887
Conversation
…sts in milliseconds, default values were [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10] that makes sense if observations where made in seconds, but we are doing observations in ms and changed them to [5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000]. Removed the decrement of gauge since we already have a collect method that is collecting the current balance, for calculating costs we should use consensusNodeClientHistorgram Signed-off-by: Alfredo Gutierrez <[email protected]>
3d9b4a4
to
4277aa1
Compare
… Metric and added Counter to keep track of HbarLimiter metrics Signed-off-by: Alfredo Gutierrez <[email protected]>
Codecov ReportBase: 74.16% // Head: 74.33% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #887 +/- ##
==========================================
+ Coverage 74.16% 74.33% +0.16%
==========================================
Files 29 29
Lines 1827 1835 +8
Branches 339 341 +2
==========================================
+ Hits 1355 1364 +9
+ Misses 374 373 -1
Partials 98 98
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Good catch on bucketing by seconds vs milliseconds! |
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.
LGTM!
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.
LG, mostly recommended nits
Signed-off-by: Alfredo Gutierrez <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
LG
* Added buckets with more meaningful values in the context of api requests in milliseconds, default values were [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10] that makes sense if observations where made in seconds, but we are doing observations in ms and changed them to [5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000]. Removed the decrement of gauge since we already have a collect method that is collecting the current balance, for calculating costs we should use consensusNodeClientHistorgram * Metric improvements changed Gauge for Counter used on IP Rate Limiter Metric and added Counter to keep track of HbarLimiter metrics --------- Signed-off-by: Alfredo Gutierrez <[email protected]>
* Added buckets with more meaningful values in the context of api requests in milliseconds, default values were [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10] that makes sense if observations where made in seconds, but we are doing observations in ms and changed them to [5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000]. Removed the decrement of gauge since we already have a collect method that is collecting the current balance, for calculating costs we should use consensusNodeClientHistorgram * Metric improvements changed Gauge for Counter used on IP Rate Limiter Metric and added Counter to keep track of HbarLimiter metrics --------- Signed-off-by: Alfredo Gutierrez <[email protected]> Signed-off-by: Nana Essilfie-Conduah <[email protected]>
Cherry pick PRs that went into main branch since cutting a 0.18.0-alpha1. PRs map to individual commits - [PR 882 - eth_feeHistory invalid cached response](#882) - [PR 887 - Needed changes for metrics improvements](#887) - [PR 883 - Handle GRPC timeout error](#883) - PR 898 - update-logs-and-metrics Added the requestId to the server context](#898) --------- Signed-off-by: ebadiere <[email protected]> Signed-off-by: Nana Essilfie-Conduah <[email protected]> --------- Signed-off-by: nikolay <[email protected]> Signed-off-by: Nana Essilfie-Conduah <[email protected]> Signed-off-by: Alfredo Gutierrez <[email protected]> Signed-off-by: Ivo Yankov <[email protected]> Signed-off-by: ebadiere <[email protected]> Co-authored-by: Nikolay Atanasow <[email protected]> Co-authored-by: Alfredo Gutierrez <[email protected]> Co-authored-by: Ivo Yankov <[email protected]> Co-authored-by: Eric Badiere <[email protected]>
* Added buckets with more meaningful values in the context of api requests in milliseconds, default values were [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10] that makes sense if observations where made in seconds, but we are doing observations in ms and changed them to [5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000]. Removed the decrement of gauge since we already have a collect method that is collecting the current balance, for calculating costs we should use consensusNodeClientHistorgram * Metric improvements changed Gauge for Counter used on IP Rate Limiter Metric and added Counter to keep track of HbarLimiter metrics --------- Signed-off-by: Alfredo Gutierrez <[email protected]>
Description:
This PR defines bucket ranges for the histogram of the following metrics:
-rpc_relay_mirror_response
-rpc_relay_method_response
from using the default bucket values of [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10] that are measuring latency in seconds to [5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000] that are measuring latency in milliseconds, witch is the unit of the observations taken.
And also removed line that decreases the gauge (operatorAccountGauge), that its purpose is to have visibility to the costs per account, but that is also being tracker by rpc_relay_consensusnode_response. So better remove to decrease complexity, unneeded redundancy.
Related issue(s):
#866
Fixes #866
Notes for reviewer:
Current Metrics with old buckets:
After this PR:
Current Gauge Metrics:
After this PR:
After this PR:
Newly created metric for hbarLimiter is working as expected
Checklist