Cloud and platform engineering

Control telemetry cardinality in service metrics

Choose metric labels that preserve operational meaning without creating unbounded time-series growth or exposing personal data. User IDs, request paths with arbitrary values and unbounded error text can create a time series per event, increasing cost and slowing monitoring systems. Cloud architecture decisions trade cost, resilience, operational skill and recovery time; validate them against service objectives rather than adopting a pattern by default.

Operational constraints and failure modes

User IDs, request paths with arbitrary values and unbounded error text can create a time series per event, increasing cost and slowing monitoring systems.

  • Define service objectives and recovery targets
  • Model dependency and regional failure modes
  • Measure cost and operational overhead

Implementation approach

Use bounded dimensions such as service, region and status class; keep high-cardinality identifiers in appropriately sampled traces or logs; and review label schemas before deployment.

  • Confirm the responsible owner
  • Apply the change to a representative case
  • Document decisions and exceptions

Practical example

An HTTP metric labels route by a normalized route template rather than raw URL, so /users/123 and /users/456 contribute to the same series.

  • Reproduce the starting situation
  • Apply the described approach
  • Check the user-facing result

Verification and follow-up

Estimate series growth from production-like traffic, inspect dashboards for raw identifiers and set alerts for unexpected cardinality changes.

  • Test expected and failure cases
  • Compare with the recorded baseline
  • Agree the next review date and owner

Questions to keep in view

When should a team use this cloud and platform engineering guide?

Choose metric labels that preserve operational meaning without creating unbounded time-series growth or exposing personal data.

What should be checked before rollout?

Estimate series growth from production-like traffic, inspect dashboards for raw identifiers and set alerts for unexpected cardinality changes.