influxdata / influxdata/influxdb

Measurement Cardinality < 0

Open
#23,285 0 comments 0 reactions 1 assignee Claimed by @gwossum View on GitHub
1.x
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Under some circumstances, measurement cardinality (as shown in debug vars) can be less than 0. This does not appear to indicate an underlying issue, rather that of two estimates being used to calculate the number (estimate(measurements) - estimate(tombstones)). If these two measurements are close to each other, you could end up with a negative number. Result should be clamped to avoid wacky answers like negative numbers.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.