feat(redis): set the redis metric identity in code (#1598 stack: 1/3)

This part sets the metric namespace and subsystem of the LabKit Redis clients in code, in internal/redisclient. The exposed families are then gitlab_artifact_registry_redis_*, whatever the infrastructure-config metrics stanza holds. It also carries the specs (S03-B, S05), the proto comment and its generated code, and the documentation that name the new prefix, including the Redis client rows in the observability catalog. It depends on no other part of the stack and touches no other package, so it builds and passes its tests alone.

Stack

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

  1. !3486 (merged) feat(redis): set the redis metric identity in code (#1598 (closed) stack: 1/3) (this merge request)
  2. !3487 (merged) feat: add health-counter and breaker metrics (#1598 (closed) stack: 2/3)
  3. !3460 (merged) test(cmd): check the new metric families are wired (#1598 (closed) stack: 3/3)

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

Related to #1598 (closed)

This is a bot message 🤖 — /smurfit

Edited by Pawel Rozlach

Merge request reports

Loading
Loading