Repository navigation
Cleanup storage cache metrics - #2897
Conversation
|
Please sign your commits following these rules: $ git clone -b "cache_metrics" git@github.com:SuperQ/distribution.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -fAmending updates the existing PR. You DO NOT need to open a new one. |
Codecov Report
@@ Coverage Diff @@
## master #2897 +/- ##
==========================================
- Coverage 60.69% 60.46% -0.23%
==========================================
Files 102 102
Lines 8044 8000 -44
==========================================
- Hits 4882 4837 -45
- Misses 2512 2516 +4
+ Partials 650 647 -3
Continue to review full report at Codecov.
|
8a41e10 to
e808fc5
Compare
|
@manishtomar, can you also look at this one? |
|
@SuperQ would you mind rebasing? Feel free to close if you no longer want to work on this. |
|
@milosgajdos rebase done. Updated to also split out the errors into a separate metric. Things get weird when you have to figure out hits/misses/errors that way. I wonder if it would be a good idea to migrate away from the |
@SuperQ that's a good question. Normally I'd say why not, but do we have any extra requirements that are not met by that module? I dont think we do |
|
I don't think the wrapper library adds much value. |
Split request and hit metrics into separate metrics, rather than using labels. This avoids duplication of data and makes metric math easier. * Count cache errors separately to avoid weird math. * Hit ratio: `registry_storage_cache_hits_total / registry_storage_cache_requests_total` * Miss ratio: `1 - (registry_storage_cache_hits_total / registry_storage_cache_requests_total` * Misses: `registry_storage_cache_requests_total - registry_storage_cache_hits_total` Signed-off-by: Ben Kochie <superq@gmail.com>
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2897 +/- ##
==========================================
- Coverage 55.95% 55.94% -0.01%
==========================================
Files 110 110
Lines 11050 11048 -2
==========================================
- Hits 6183 6181 -2
Misses 4178 4178
Partials 689 689
☔ View full report in Codecov by Sentry. |
deleteriousEffect
left a comment
There was a problem hiding this comment.
These look like solid changes to me 🚀
Split request and hit metrics into separate metrics, rather than using
labels. This avoids duplication of data and makes metric math easier.
registry_storage_cache_hits_total / registry_storage_cache_requests_total1 - (registry_storage_cache_hits_total / registry_storage_cache_requests_totalregistry_storage_cache_requests_total - registry_storage_cache_hits_total