distribution/registry
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
..
api registry/api/v2: fix ContentType in RouteNameBlobUpload 2023-06-08 11:05:34 +02:00
auth ignore SA1019: ac.(*accessController).rootCerts.Subjects has been deprecated 2023-05-09 16:04:17 +02:00
client Support ztsd compression as Content-Encoding 2023-06-01 14:06:25 +01:00
handlers registry/handlers/app: log healthcheck error before return 2023-06-27 09:50:15 +02:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware Merge pull request #2752 from davidswu/registry-driver-middleware 2023-06-21 10:06:13 -07:00
proxy Merge pull request #3880 from wzshiming/proxy-cache-configurable 2023-07-14 08:43:19 +01:00
storage Cleanup storage cache metrics 2023-08-04 09:03:06 +02:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go Merge pull request #3942 from lavalleeale-forks/main 2023-07-14 16:28:34 +01:00
registry_test.go replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
root.go format code with gofumpt 2022-11-03 22:48:20 +01:00