Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aggregator] Take last value by value timestamp not arrival time #2199

Merged
merged 11 commits into from
Mar 10, 2020

Conversation

robskillington
Copy link
Collaborator

What this PR does / why we need it:

We've noticed that at times a bunch of values for the same gauge can arrive at the same time to the aggregator with a varying set of timestamps, gauge last value aggregation should take the last value by timestamp not by arrival time to account for this.

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

@arnikola
Copy link
Collaborator

arnikola commented Mar 9, 2020

Looks like there's a few build breaks, got a few nits, but generally lgtm

@codecov
Copy link

codecov bot commented Mar 9, 2020

Codecov Report

Merging #2199 into master will increase coverage by 0.7%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #2199     +/-   ##
========================================
+ Coverage    71.4%   72.2%   +0.7%     
========================================
  Files        1018    1022      +4     
  Lines       88519   88724    +205     
========================================
+ Hits        63282   64086    +804     
+ Misses      20976   20346    -630     
- Partials     4261    4292     +31
Flag Coverage Δ
#aggregator 82.1% <100%> (-0.2%) ⬇️
#cluster 85.3% <ø> (-0.1%) ⬇️
#collector 82.8% <ø> (ø) ⬆️
#dbnode 79% <ø> (-0.1%) ⬇️
#m3em 74.4% <ø> (+16.2%) ⬆️
#m3ninx 72.4% <ø> (+0.2%) ⬆️
#m3nsch 51.1% <ø> (ø) ⬆️
#metrics 17.6% <ø> (ø) ⬆️
#msg 74.8% <ø> (-0.2%) ⬇️
#query 68.4% <ø> (ø) ⬆️
#x 83.2% <ø> (+8%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5080d2e...6364c0c. Read the comment docs.

Copy link
Collaborator

@arnikola arnikola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending green build 👍

@robskillington robskillington merged commit 496ce8c into master Mar 10, 2020
@robskillington robskillington deleted the r/gauge-take-last-aggregation-by-timestamp branch March 10, 2020 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants