mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 15:05:49 +03:00
[GH-ISSUE #573] Send less UP/DOWN emails in a row to save money and email reputation #417
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#417
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arxeiss on GitHub (Oct 18, 2021).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/573
Hi, I was playing with your service and I have found it amazing. However, I have found a situation, in which your service would "spam" my email.
I set up the check to 2 minutes interval and 2 minutes grace time. My cron runs every 2 minutes.
But then I misclicked the cron config and set up run every 5 minutes. And every 4th minute I received DOWN email and 1 minute later UP email. And that went again and again. I received during an hour 24 emails.
I was thinking about the best way to solve this. And I think the best idea would be to create new option for each check, which would define how many
Successpings you need to convert from Down to Up. So I would put there let say 6.So I would need to have 6x success ping without any missing or fail to go UP again.
This should avoid repeated UP/DOWN emails.
@cuu508 commented on GitHub (Nov 3, 2021):
I think in the use case you described (Healthchecks is configured for 2 minute interval, the actual cron job runs at 5 minute interval) the correct solution would be to fix the schedule on Healthchecks side to match the cron job.
@arxeiss commented on GitHub (Nov 3, 2021):
But the 5 minutes interval was bad. It should be 2 minutes, but I set up accidentally 5 minutes in crontab.
So warnings from Healthchecks were OK, just there were too many emails, cause it was DOWN and UP every 5 minutes
@cuu508 commented on GitHub (Nov 3, 2021):
OK, the correct solution would be to fix the cron job's schedule.
I don't think adding additional configuration option is the way to go here. For the configuration option to work, the user would need to know it exists. The user would need to understand precisely how it works. The user would need to care to set this option to a reasonable value. And there's significant technical cost to implementing it.
OTOH, sending 2000 emails to an user over 24h period in some rare cases is not a significant cost or reputation issue. As an user, bulk deleting the notifications from the past 24h shouldn't be too hard either, and the user shouldn't need to do this often.
I think we can leave this as-is.