[DocDB] Incorrect Aggregation Function for certain xCluster Metrics: Change from Sum to Max #25422
Open
1 task done
Labels
area/docdb
YugabyteDB core features
kind/bug
This issue is a bug
priority/medium
Medium priority issue
status/awaiting-triage
Issue awaiting triage
Jira Link: DB-14654
Description
kSum
aggregation is currently used for many xCluster metrics, but this leads to overflows and inaccuracies for metrics like last_read_hybridtime, which should instead use maximum aggregationkMax
.For optimal accuracy in the future, we should implement a
kLatest
aggregation function, which would require metric storing both the latest value and its corresponding timestamp.Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: