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

fix(metrics): record drift from last resource check #976

Merged
merged 3 commits into from
Apr 7, 2020

Conversation

lorin
Copy link
Contributor

@lorin lorin commented Apr 6, 2020

Calculate the resource check drift metric (keel.resource.check.drift)
by using the last time resource check succeeded as the start time.

Previously, it was calculating based on the beginning of the actuation
loop, which would drop to zero when the loop restarted due to timeout.

Fixes #950

Copy link
Contributor

@luispollo luispollo left a comment

Choose a reason for hiding this comment

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

LGTM.

@lorin
Copy link
Contributor Author

lorin commented Apr 7, 2020

rebased against master

@luispollo luispollo added the ready to merge Approved and ready for merge label Apr 7, 2020
Lorin Hochstein added 2 commits April 7, 2020 15:01
Calculate the resource check drift metric (keel.resource.check.drift)
by using the last time resource check succeeded as the start time.

Previously, it was calculating based on the beginning of the actuation
loop, which would drop to zero when the loop restarted due to timeout.

Fixes spinnaker#950
…arting

Remove ScheduledResourceCheckStarting since it's no longer used.

Move ResourceCheckCompleted to a separate file.
@mergify mergify bot merged commit 399d102 into spinnaker:master Apr 7, 2020
@mergify mergify bot added the auto merged label Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged ready to merge Approved and ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calculate drift metric based on last time resource was checked
4 participants