-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
add healthchecks.io integration #203
Conversation
I really like this idea. And I agree that it is important to monitor these processes under the hood as they aren’t sent out as notifications unless a major event happens. Currently, the script uses Apprise to send notifications. It looks like healthcheck.io has integration with Apprise. One thing we can do is add a debug_notification_urls config (perhaps a better name?) to give people the opportunity to send these types of notifications to any supported platform, not just healthcheck.io. If we do go the Apprise route, the code can be added to the If you don’t want to do the implementation and/or documentation, I can certainly handle that as well. |
The apprise implementation in healthchecks goes the opposite direction. In other words, healthchecks itself can use apprise to send out its (healthcheck's) notifications. I don't see any support within apprise for healthchecks integration. Given that info, what are your thoughts on integrating now? |
Ah, I didn't too far into that and it does seem to be intended according to caronc/apprise#139.
I like this integration. Here are my thoughts on the steps to make this PR ready for production (in addition to my review comments):
I can help with any of my comments or these steps as well. Just let me know. I will also handle changing the Changelog before the next release. |
Would you mind doing numbers 1 and 3 from your to-do list? |
Yes, I can take care of that |
@jdholtz Could you take a look at this again? |
Tested it out and I like it a lot. One thing I noticed is that the healthchecks config is only applied when it is in a specific reservation config or account config. However, it is never called at |
It sounds like you are proposing a single healthchecks URL that operates for all of the fare checker operations. Is that right? Is the fare checking done on a per-account basis, or are all of the flights combined into one bucket and checked independently of the original account? If it's the former, I don't agree with this idea, if it's the latter, I can get on board with the caveat that I do think we need individual account-level healthchecks calls after log in, like you originally proposed here. I am seeing the light now that login failed for my account this morning (due to wrong password) and I only noticed when the healthchecks ping was late. Combining the healthchecks URLs for all of the accounts means that I would not have noticed this (because I did not get a failed log in notification, weirdly). |
Here are the logs from that failed log in, I can create a separate issue if you want. (The issue would be: send a failed log in notification in this case, not fail silently, which is what currently happens):
|
Yes it is the former. Thinking through it, that makes a lot more sense to only have it on a per-account. We'll stick with this. I'll try to get the rest of the PR finished in the next couple of days.
It looks like the invalid login is still producing a 429 error, which is most likely related to the underlying issue in #201 (although it seems that the fare check was working). I tried it and it does notify my correctly with the 'Invalid Credentials' error.
Currently there is not a notification sent when a 429 happens. Skipping on 429s was implemented in 6c0186c and from the description it seems to be because people were getting 429s occasionally. Would you like to see a notification there? |
Okay sounds good!
I would've expected to see a notification here. Basically I would expect a notification any time something isn't working right so I can go check in on it. This would fall under that category IMO. Maybe this behavior could be configurable? |
That makes sense. I'll add a notification before the next release. For now it'll be under the error notification level, but I can adjust it (maybe make a new level) if people want that configurable. Going back to the Healthchecks URL, since it is an account/reservation-specific config only, it won't be able to be added as an environment variable (the feature was added in v7.2 after this PR was created). I don't think that should be an issue though as if people really want the Healthchecks URL then they can just use the config file. |
That all sounds good to me. Thanks! |
Thanks @StevenMassaro! This integration will be a part of the next release. |
Hey @StevenMassaro. Wanted to let you know I added a notification for this in #281. Didn't come out in the next release from this, but it's added now under the |
Creating this pull request to start a discussion before continuing the implementation.
Over the past couple months, there have been a few times where features of this app have stopped working unexpectedly. Integration with healthchecks.io would allow more close monitoring of the app, particularly the fare check part (which is most useful to me).
Wondering if you have any thoughts on this work.
To-do/thoughts: