mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #396] Email subject filter for Failure state #298
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#298
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 @revilo951 on GitHub (Jul 7, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/396
Is there any way to specify a subject word to trigger a notification?
At the moment, I'm receiving emails from some software with 3 possible outcomes: Success, Warning, and Failed.
If the task fails, I still get the email, therefore healthchecks thinks the task succeeded.
It'd be nice if we could specify that an email with the words "Warning" or "Failed" (for example) meant that the task failed, and a notification needs to be sent (or did I miss something, and this is possible already somehow?).
@revilo951 commented on GitHub (Jul 8, 2020):
Edit: in this case, there isn't a specific timing for the emails, so the "ignore" filter can't really help with this.
@cuu508 commented on GitHub (Jul 10, 2020):
Currently we cannot signal failure to Healthchecks via an email, but I'm open to implementing it.
I want to run an UI mockup past you and ask a few questions to see if it's any good:
Are the emails coming in at random intervals, and you want any "success" email to flip a check to green, and any "failure" email to flip it to red?
@revilo951 commented on GitHub (Jul 13, 2020):
@revilo951 commented on GitHub (Jul 13, 2020):
Another scenario that has come up, is a piece of software that handles multiple backups that need monitoring (software runs from a single piece of equipment) doesn't have the ability to send to a unique email address per job, however, I can put the unique identifier in the subject. A way to handle this would be nice, not sure how hard that would be though. I'm currently running the emails through a postfix smtp relay, and filtering/running rules to forward the emails to a different address, per the ID in the subject.
Apologies for not noticing your reply sooner!
@cuu508 commented on GitHub (Jul 17, 2020):
Thanks for the feedback @revilo951, that's very useful. And looks like the different options (and their combinations) are not as clear as they should be.
Here's a new attempt:
@revilo951 commented on GitHub (Jul 19, 2020):
@cuu508 That looks excellent! Only question I have is - do these Keyword fields have any provision for more than one keyword, eg comma-separated keywords?
@cuu508 commented on GitHub (Jul 21, 2020):
@revilo951 I see the value of comma-separated keywords. They would add a bit of complexity but are doable.
I think I'll start with implementing the above single-keyword version and once that's working, look at adding support for comma-separated keywords.
@revilo951 commented on GitHub (Jul 21, 2020):
Awesome, thanks for that.
@cuu508 commented on GitHub (Jul 21, 2020):
FYI – the initial, single-keyword version is deployed on https://healthchecks.io and is ready for testing.
@cuu508 commented on GitHub (Jul 23, 2020):
The multiple, comma-separated keywords are now implemented and deployed as well:
@revilo951 commented on GitHub (Jul 23, 2020):
I've tested the single keyword version yesterday, it's working well.
Many thanks for this awesome change, and very useful software. :)