[DocDB] Create kLatest Metric Aggregation Function #25437
Labels
area/docdb
YugabyteDB core features
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
status/awaiting-triage
Issue awaiting triage
Jira Link: DB-14674
Description
As discussed in #25422, many xCluster metrics use
kSum
aggregation, which leads to overflows and inaccuracies, particularly for metrics likelast_read_hybridtime
, As a short-term solution, we are switching to use maximum aggregationkMax
.This issue proposes a longer-term solution: implementing a
kLatest
aggregation function to provide the most accurate aggregated value. This function will also require metrics to store both the latest value and the corresponding timestamp.Issue Type
kind/enhancement
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: