Micrometer Cardinality Control Quick Start For any metric with dynamic tags, apply this pattern: When to Use - Add tags to metrics (ensure bounded cardinality) - Normalize high-cardinality data (URIs, IDs) - Prevent OutOfMemoryError from metric explosion - Control monitoring costs - Debug metric growth When NOT to use: - Truly unbounded data (use distributed tracing) - Per-request details (use structured logging) Cardinality Rules Safe Tags (Low Cardinality) Dangerous Tags (High Cardinality) Rule of Thumb: - Safe per metric: < 1,000 combinations - Safe application-wide: < 10,000 active metric…