-
Notifications
You must be signed in to change notification settings - Fork 573
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
Support Healthchecks.io monitoring #933
Comments
What information are you using for monitoring and what actions are you taking from it? We probably need some kind of "is it working" metric and alert on it. Derivative of that would be some reliability score. There may be a need for velocity-type metric as a guide for optimizing and adjusting behavior, something like "age of downloaded bytes"... Architecture-wise, I am leaning towards pull mechanism for metrics ( |
If a process/service doesn't successfully ping, then I get an alert about the process/service from healthchecks to go figure out what happened and get it back to green. (Healthchecks Intro: https://healthchecks.io/docs/ ) So for this project, it would be good to know that for some reason (most likely need to reauth, but it could be anything) my icloud photos aren't being backed up anymore and I should get it back online. |
The service is performing periodic iCloud checks. I assume that pinging
Yes, if expected check was not performed, then user needs to be notified/alerted to correct the issue. Kinda watch dog. Should probably be implemented on monitoring/alerting side, so if service is not running at all, we still notify user. Thanks for helping brainstorming the issue. I need to dig into healthcheck.io to learn more about ideas to come up with the solution for |
Thanks. Just to clarify one thing, healthchecks.io acts as a "dead man's switch". On healthchecks you specify how long it should wait for a successful ping from a service before sending an alert to you. So, the change on iCloudpd would be simple. At end of sync, run "curl 'user provided healthchecks url'" |
You can use |
Thanks, I missed that option, that seems good for when icloudpd knows there is an issue so I'll set that up to curl the /fail endpoint on healthchecks Perhaps there could be a new --success-script option to ping healthchecks to catch when the service goes down for any reason |
stumbled on this issue while looking for a way to integrate this with prometheus to set up alerts for "last icloudpd update > x days ago". i think if we had i can also potentially take a look at implementing this if people think it's a reasonable approach. |
Summary
Add a
--healthchecks_url
(similar to Borgmatic) param or a more genericping_url_on_success
paramContext
I use healthchecks for monitoring important processes. I would like to integrate icloudpd into that system. The simplest way would be a param that accepts a URL that icloudpd will ping on successful download.
Perhaps there are other ways to handle this as well.
The text was updated successfully, but these errors were encountered: