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

Added rateofchangesec operator to calculate change of value per second #1259

Merged
merged 4 commits into from
Jun 27, 2022
Merged

Added rateofchangesec operator to calculate change of value per second #1259

merged 4 commits into from
Jun 27, 2022

Conversation

art-vasilyev
Copy link
Contributor

Added operator to calculate change between cumulative metric measures per second.

Simplified formula:

rate = (v2 - v1) / (t2 - t1)

It may be used to calculate cpu utilisation from cumulative cpu metric:

gnocchi aggregates '(* (/ (rateofchangesec (metric cpu mean)) 1000000000) 100))' id=<resource_id>

Copy link
Contributor

@tobias-urdin tobias-urdin left a comment

Choose a reason for hiding this comment

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

Thanks! Please add a release note.

@mergify mergify bot dismissed tobias-urdin’s stale review June 27, 2022 08:10

Pull request has been modified.

@mergify mergify bot merged commit b83c4a8 into gnocchixyz:master Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants