cardinality

The number of distinct values a metric label can take, which multiplies how many separate series a metric creates.

In more detail

Putting a user identifier or a full address into a label creates unbounded series and a memory problem. Use bounded labels such as operation, status family and dependency outcome.

Example

4 methods × 20 routes × 6 statuses × 12 instances = 5,760 series; add user_id with 50,000 values and it becomes 288 million.

Related terms

Taught in

References

Certification courses