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

[Feature Request] Configurable time window before triggering an alert #115

Closed
cid214 opened this issue Aug 12, 2024 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists

Comments

@cid214
Copy link

cid214 commented Aug 12, 2024

It'd be nice to be able to say 'trigger if cpu usage exceeds x% for y seconds' rather than it be an immediate trigger.

Locally this is causing a LOT of flapping notifications because I do backups compressed with xz, and use all the cpu cores which results in 100% usage but only for ~30 seconds to a minute, but that's still enough to trigger the notifications.

It'd be nice to be able to tweak the sensitivity of the notifications to not immediately trigger because CPU spikes are an expected part of a lot of workloads.

@henrygd
Copy link
Owner

henrygd commented Aug 12, 2024

See #93

Rather than 'x above y for z seconds,' it will need to be based on average utilization.

Right now it's calculated by one minute average. I should be able to add 10m, 20m, and 2h options. Or possibly just any round value between 1m and 60m.

This is behind some other things currently so I probably won't get to it until next month at the earliest.

@henrygd henrygd closed this as completed Aug 12, 2024
@henrygd henrygd added the duplicate This issue or pull request already exists label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants