feat: add health-counter and breaker metrics (#1598 stack: 2/3)
This part adds two independent metric sets.
The first is the remote_health_failures_ops_total counter in internal/remote: the health monitor counts each failure-counter Increment and Reset by outcome.
The second is the URL-cache circuit-breaker metrics, the storage_urlcache_breaker_open gauge and the storage_urlcache_breaker_transitions_total counter, which the middleware records through storage.RecordURLCacheBreakerTransition, and the cardinality audit pins the new to label to the three breaker states.
It carries the tests for both, and the final observability catalog with the health-failures row, the breaker rows and the reworded urlcache_requests_total row.
It uses only the code on main and in the part below, so it builds and passes its tests on its own.
Stack
This merge request is part 2 of 3 of one reviewed change (vespian_gl/issue-1598-redis-observability-document-labkit-redis), split into a stack so each part is reviewable on its own. Merge the parts in this order, bottom first:
- !3486 (merged) feat(redis): set the redis metric identity in code (#1598 (closed) stack: 1/3)
- !3487 (merged) feat: add health-counter and breaker metrics (#1598 (closed) stack: 2/3) (this merge request)
- !3460 (merged) test(cmd): check the new metric families are wired (#1598 (closed) stack: 3/3)
It targets !3486 (merged), the part below it, which merges first. !3460 (merged), the part above it, targets this one and merges after it.
Related to #1598 (closed)
This is a bot message