Controlling label cardinality in time-series metrics
Attaching user IDs, raw URLs, or request UUIDs to metric labels multiplies active time series until memory usage dwarfs the application itself.
Restrict metric dimensions to bounded enums such as route template, status class, and availability zone. Everything unbounded belongs in sampled structured event logs.
Enforce per-service series budgets in staging environments so accidental label explosions fail pre-production checks rather than paging on-call engineers.
Use native exponential histograms for latency percentiles instead of computing client-side summaries that cannot be aggregated across instances.