- Documentation
- Learning Hub
- Section 3 of 5 Choose and fix metric labels
Use bounded labels
Slide 1 of 7
Use bounded labels
A metric label should be a dimension you aggregate or filter by, with a bounded set of values.
The single most important rule is that label values must be bounded. A label like env has a handful of values forever. A label like user_id is an unbounded label: it grows without limit, and every new value creates another active series that’s billed and indexed.
Never use these as metric label values:
- User, customer, or session IDs
- Request or trace IDs
- IP addresses
- Email addresses
- Timestamps
Each of these creates a new series per unique value, and the combinations multiply against every other label on the metric.