chore(metrics): add seeders for maven and npm (#1628 stack: 3/5)
This part adds the startup seed functions for the Maven and npm metric families: the hosted, remote and virtual seeders in internal/format/maven and internal/format/npm, plus npm's InitResolutionMetrics and InitHealthProbeMetrics.
Each function creates the label values its booking sites can reach, at zero and with no observation, and each package's own tests pin the seeded sets.
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 inside the two format packages and uses no symbol from another part.
Stack
This merge request is part 3 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)
- !3479 (merged) chore(metrics): add seeders for auth and authz (#1628 (closed) stack: 2/5)
- !3480 (merged) chore(metrics): add seeders for maven and npm (#1628 (closed) stack: 3/5) (this merge request)
- !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)
It targets !3479 (merged), the part below it, which merges first. !3481 (merged), the part above it, targets this one and merges after it.
Related to #1628 (closed)
This is a bot message