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

lib/streamaggr: added rate and rate_avg output #6243

Merged
merged 3 commits into from May 13, 2024
Merged

Conversation

AndrewChubatiuk
Copy link
Contributor

@AndrewChubatiuk AndrewChubatiuk commented May 8, 2024

Describe Your Changes

Added rate and rate_avg output
Resource usage is the same as for increase output, tested on a benchmark

Checklist

The following checks are mandatory:

Copy link
Collaborator

@hagen1778 hagen1778 left a comment

Choose a reason for hiding this comment

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

The changelog line is missing :)

docs/stream-aggregation.md Outdated Show resolved Hide resolved
docs/stream-aggregation.md Outdated Show resolved Hide resolved
docs/stream-aggregation.md Outdated Show resolved Hide resolved
@AndrewChubatiuk AndrewChubatiuk force-pushed the support-rate branch 2 times, most recently from 399aed9 to b66106d Compare May 8, 2024 12:44
@AndrewChubatiuk AndrewChubatiuk force-pushed the support-rate branch 2 times, most recently from dc642e3 to 4cca78b Compare May 8, 2024 13:20
@AndrewChubatiuk AndrewChubatiuk force-pushed the support-rate branch 4 times, most recently from 29ebf00 to e082d3e Compare May 10, 2024 19:32
@AndrewChubatiuk AndrewChubatiuk changed the title lib/streamaggr: added rate output lib/streamaggr: added rate and rate_avg output May 10, 2024
@AndrewChubatiuk
Copy link
Contributor Author

@hagen1778 tested on a sandbox, resource usage for rate is almost the same as for increase

Copy link
Collaborator

@hagen1778 hagen1778 left a comment

Choose a reason for hiding this comment

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

LGTM

@hagen1778
Copy link
Collaborator

@AndrewChubatiuk would you mind checking 8b10330 ? If you agree with changes then we can merge this pr.

AndrewChubatiuk and others added 2 commits May 13, 2024 15:37
* rename `rate` to `rate_sum` for sake of consistency
* rename `startTimestamp` to `prevTimestamp` for clarity
* capture number of unique series for `rate_avg` calculation after
stale series were removed

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Signed-off-by: hagen1778 <roman@victoriametrics.com>
@hagen1778 hagen1778 merged commit 9c3d44c into master May 13, 2024
2 of 3 checks passed
@hagen1778 hagen1778 deleted the support-rate branch May 13, 2024 13:39
hagen1778 pushed a commit that referenced this pull request May 13, 2024
Added `rate` and `rate_avg` output
Resource usage is the same as for increase output, tested on a benchmark

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit 9c3d44c)
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.

None yet

3 participants