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

Stats engine: only skip container on cpu/mem errors #2386

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Mar 6, 2020

Summary

PR #2366 changed the behavior of stats gathering to skip the container in the situation that storage stats gathering failed.

To keep behavior consistent, we will continue to only skip if cpu/mem stats fail.

This PR also fixes the behavior where network/storage stats were being assigned even when there were errors.

Testing

New tests cover the changes: no

Unfortunately the metrics Queue is a struct and not an interface, and thus can't be mocked without significant code refactoring.

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sparrc sparrc merged commit 8e4e7f4 into aws:dev Mar 9, 2020
@sparrc sparrc deleted the stats-engine-skip branch March 9, 2020 20:50
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