test(cmd): check the new metric families are wired (#1598 stack: 3/3)
This part adds the composition-root wiring test TestWiring_URLCacheBreakerAndFailureCounterFamiliesRegistered in cmd/artifact-registry.
The test checks that the URL-cache breaker families and the health failure-counter ops counter reach the scraped registry with the catalogued labels.
All the code it checks is in the part below, so this part changes no production code.
Stack
This merge request is part 3 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)
- !3460 (merged) test(cmd): check the new metric families are wired (#1598 (closed) stack: 3/3) (this merge request)
It targets !3487 (merged), the part below it, which merges first. It is the top of the stack and merges last.
Related to #1598 (closed)
This is a bot message