mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #917] Feature request: dependency between checks for decision on changing health status or sending notifications #643
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#643
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 @netstx on GitHub (Nov 18, 2023).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/917
Hi @cuu508,
I checked closed issues, does not seem like this has been suggested before.
My suggestion / feature request is for dependency between checks, to avoid raising an alert for check Y if check X is already in alert.
For example: let's say I have a check on my internet router and a check for a cron job on a server that depends on this router to connect to the internet. If my router (parent check) goes down, the cron job check (child) would also would fail. Because of this dependency, I'd only need the router check alert notification(s), and could ignore the cron job check's alert notifications(s).
This is a simple example, but there are many other types of "dependencies" that I think users could come up with (between applications or cron jobs, scripts, etc).
The dependency check could simply not issue the notifications, but still keep track of missed checks, or ignore missed checks until the dependency clears (or having option for both). This would be somewhat similar to the "maintenance window" feature in some uptime monitoring tools out there, like UptimeRobot.
One thing to keep in mind, if grace period is the same for parent and child checks, it could cause issues, so perhaps part of the dependency feature, a child check would automatically have its grace period set higher by X% of the parent check's grace period - or some other method to avoid missing the dependency due to parent grace period.
Another way to go about this would be to implement a "maintenance window" feature where a one-time date/time or recurring date/time maintenance window would ignore missed pings or not send notifications. Then, a child check could automatically have a maintenance window created if a parent check is down. This may not be as elegant.
Thanks for listening, and for all your work on this awesome project.
Best,
Rafael
@cuu508 commented on GitHub (Nov 21, 2023):
Thanks for the suggestion @netstx. There's a similar feature suggestion here: #316
@netstx commented on GitHub (Nov 21, 2023):
Didn't catch that, thank you.