Skip to content
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 configurable healthchecks.io URL option #142

Closed
wants to merge 7 commits into from
Closed

Add configurable healthchecks.io URL option #142

wants to merge 7 commits into from

Conversation

shukon
Copy link

@shukon shukon commented May 8, 2023

Problem

There is no easy solution for external monitoring of the backups. Since there's nothing worse than setting up a backup to discover after 6 months (or years) that it stopped working after a couple of days.
Yunohost sending mails alleviates the problem somewhat, but introducing healthchecks is an easy solution with no overhead.
This PR fixes #117 - it can be extended later on by multiple options for backup monitoring, something like the backup-hooks in borgmatic, but it doesn't have to.

Solution

  • Introduce an optional config-variable called healthchecks_url that is called upon success or failure (in the event of failure it includes the logs). You can send this either to your own hosted version of healthchecks.io or to the official one.

PR Status

  • Code finished and ready to be reviewed/tested
  • The fix/enhancement were manually tested (if applicable)

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

EDIT: I could also imagine moving it to "Advanced Options" if that feels better?

Sorry for the force-pushes. Ready for review.

@shukon shukon marked this pull request as draft May 10, 2023 09:13
@shukon shukon marked this pull request as ready for review May 10, 2023 17:06
@shukon shukon closed this by deleting the head repository Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants