distribution/registry/storage/cache
Ben Kochie c19adfdf06
Cleanup storage cache metrics
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>
2023-08-04 09:03:06 +02:00
..
cachecheck format code with gofumpt 2022-11-03 22:48:20 +01:00
memory registry/storage/cache/memory: Use LRU cache to bound cache size 2022-09-07 07:20:06 -07:00
metrics go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
redis go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
cache.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
cache_test.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
cachedblobdescriptorstore.go Cleanup storage cache metrics 2023-08-04 09:03:06 +02:00