Skip to content

Add condition to ensure swap is not zero for swap alert #1099

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

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

seunghun1ee
Copy link
Member

@seunghun1ee seunghun1ee commented Jun 14, 2024

I thought I introduced divide by zero situation even though Prometheus can handle zero denominator with NaN. Let's add condition explicitly checking if swap space is not zero for humans.

@seunghun1ee seunghun1ee self-assigned this Jun 14, 2024
@seunghun1ee seunghun1ee requested a review from a team as a code owner June 14, 2024 13:14
@seunghun1ee seunghun1ee requested a review from dougszumski June 14, 2024 13:24
Copy link
Member

@dougszumski dougszumski left a comment

Choose a reason for hiding this comment

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

Thanks @seunghun1ee

@seunghun1ee
Copy link
Member Author

@dougszumski Thanks for approval. The checks for Centos8 is currently broken. Could you force merge this branch?

@markgoddard markgoddard merged commit 14d7479 into stackhpc/yoga Jun 17, 2024
13 of 15 checks passed
@markgoddard markgoddard deleted the fix-zero-denominator branch June 17, 2024 14:38
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