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

[coordinator] Add config option to make rollup rules untimed #3343

Merged
merged 7 commits into from
Mar 10, 2021

Conversation

shreyassrivatsan
Copy link
Collaborator

What this PR does / why we need it:
This change adds a coordinator config option to force all rollup rules to be considered as untimed.

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

@codecov
Copy link

codecov bot commented Mar 9, 2021

Codecov Report

Merging #3343 (14a4c4b) into master (079ac7d) will increase coverage by 0.0%.
The diff coverage is 0.0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3343   +/-   ##
=======================================
  Coverage    72.4%    72.4%           
=======================================
  Files        1098     1098           
  Lines      101884   101889    +5     
=======================================
+ Hits        73835    73853   +18     
+ Misses      22957    22953    -4     
+ Partials     5092     5083    -9     
Flag Coverage Δ
aggregator 76.8% <ø> (+<0.1%) ⬆️
cluster 84.9% <ø> (ø)
collector 84.3% <ø> (ø)
dbnode 78.9% <ø> (+<0.1%) ⬆️
m3em 74.4% <ø> (ø)
m3ninx 73.6% <ø> (+<0.1%) ⬆️
metrics 19.8% <0.0%> (-0.1%) ⬇️
msg 74.5% <ø> (ø)
query 67.3% <ø> (ø)
x 80.3% <ø> (+<0.1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.


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 079ac7d...14a4c4b. Read the comment docs.

},
timedSamples: []testGaugeMetricTimedSample{
{value: 42},
{value: 12, offset: 2 * time.Second},
Copy link
Collaborator

Choose a reason for hiding this comment

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

interesting, so these will actually get rolled up into one data point even though the resolution is one second?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, so because timestamp gets stamped on the agg side, what you pass in is ignored.

I added another variety of test where we wait for the time before sending in the metric. That actually aggregates things into two datapoints.

Copy link
Collaborator

@wesleyk wesleyk left a comment

Choose a reason for hiding this comment

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

LGTM

@robskillington robskillington changed the title [coordinator] add config option to make rollup rules untimed [coordinator] Add config option to make rollup rules untimed Mar 10, 2021
Copy link
Collaborator

@robskillington robskillington left a comment

Choose a reason for hiding this comment

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

LGTM other than nits/minor comments

@shreyassrivatsan shreyassrivatsan merged commit d086cc5 into master Mar 10, 2021
@shreyassrivatsan shreyassrivatsan deleted the ss/untimed branch March 10, 2021 01:19
soundvibe added a commit that referenced this pull request Mar 10, 2021
* master:
  [dbnode] Remove unused shardBlockVolume (#3347)
  Fix new Go 1.15+ vet check failures (#3345)
  [coordinator] Add config option to make rollup rules untimed (#3343)
  [aggregator] Raw TCP Client write queueing/buffering refactor (#3342)
  [dbnode] Fail M3TSZ encoding on DeltaOfDelta overflow (#3329)
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