chore(metrics): add seeders for storage and jobs (#1628 stack: 1/5)

This part adds the startup seed functions for the storage, accounting, lifecycle and remote negative-cache metric families: storage.InitStorageMetrics with its StorageSeries input, accounting.InitMetrics, lifecycle.InitMetrics and remote.InitMetrics. Each function creates its family's children at zero and records no observation, and each package's own tests pin the seeded label 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, uses no symbol from another part, and builds and tests against main as it is.

Stack

This merge request is part 1 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:

  1. !3478 (merged) chore(metrics): add seeders for storage and jobs (#1628 (closed) stack: 1/5) (this merge request)
  2. !3479 (merged) chore(metrics): add seeders for auth and authz (#1628 (closed) stack: 2/5)
  3. !3480 (merged) chore(metrics): add seeders for maven and npm (#1628 (closed) stack: 3/5)
  4. !3481 (merged) chore(metrics): add seeders for oci families (#1628 (closed) stack: 4/5)
  5. !3470 (merged) chore(metrics): seed metric series at startup (#1628 (closed) stack: 5/5)

It is the bottom of the stack and merges first. !3479 (merged), the part above it, targets this one and merges after it.

Related to #1628 (closed)

This is a bot message 🤖 — /smurfit

Edited by Pawel Rozlach

Merge request reports

Loading
Loading