chore(metrics): add seeders for auth and authz (#1628 stack: 2/5)
This part adds the startup seed functions for the authentication and authorization metric families: auth.InitMetrics with AuthSeries, authz.InitMetrics with AuthzSeries, glaz.InitMetrics, and iam.InitRelationshipCacheEvents with the two cache-name constants.
Each function creates only the children the selected posture or validator can book, at zero and with no observation, and each package's own tests cover both arms of every condition.
Production does not call these functions yet: the composition root wires them in the top part of this stack.
The part stands on its own because it only adds code and uses no symbol from another part.
Stack
This merge request is part 2 of 5 of one reviewed change (vespian_gl/issue-1628-metric-initialization-phase-2-storage), split into a stack so each part is reviewable on its own. Merge the parts in this order, bottom first:
- !3478 (merged) chore(metrics): add seeders for storage and jobs (#1628 (closed) stack: 1/5) (merged)
- !3479 (merged) chore(metrics): add seeders for auth and authz (#1628 (closed) stack: 2/5) (this merge request)
- !3480 (merged) chore(metrics): add seeders for maven and npm (#1628 (closed) stack: 3/5)
- !3481 (merged) chore(metrics): add seeders for oci families (#1628 (closed) stack: 4/5)
- !3470 (merged) chore(metrics): seed metric series at startup (#1628 (closed) stack: 5/5)
!3478 (merged), the part below it, has merged, so this merge request now targets main. !3480 (merged), the part above it, targets this one and merges after it.
Related to #1628 (closed)
This is a bot message