chore(metrics): add seeders for oci families (#1628 stack: 4/5)

This part adds the startup seed functions for the container (OCI) metric families: oci.InitMetrics, oci.InitRemoteMetrics with its RemoteSeries input, and oci.InitVirtualMetrics. Each function creates the label values the wired emitters can book, at zero and with no observation, and the package's own tests pin the seeded sets and both arms of each RemoteSeries 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 inside internal/format/oci and uses no symbol from another part.

Stack

This merge request is part 4 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)
  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) (this merge request)
  5. !3470 (merged) chore(metrics): seed metric series at startup (#1628 (closed) stack: 5/5)

It targets !3480 (merged), the part below it, which merges first. !3470 (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