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

Notification systems integration (hooks) #424

Open
solracsf opened this issue Sep 9, 2022 · 3 comments
Open

Notification systems integration (hooks) #424

solracsf opened this issue Sep 9, 2022 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@solracsf
Copy link

solracsf commented Sep 9, 2022

Sorry if this is already in place, couldn't find anything on it.
As a replication service, one should monitor it (as always).

One possibility is to integrate it with any "ping" service like https://healthchecks.io/ or similar so the service can be ping'ed every time sync (replication) has been done successfully.

Something like this https://torsion.org/borgmatic/docs/how-to/monitor-your-backups/#healthchecks-hook

@benbjohnson benbjohnson added this to the v0.4.0 milestone Sep 10, 2022
@benbjohnson benbjohnson added the enhancement New feature or request label Sep 10, 2022
@benbjohnson
Copy link
Owner

@solracsf Yeah, I like that idea. I've used deadmanssnitch which is similar. It'd probably be good to batch up and only call the API every 5 minutes or hour or something.

@solracsf
Copy link
Author

For sure. By having a configurable time (why not with 1m being the lower limit), one could be sure the process is up and running at conveniente times. Once you have an API for that, it could be easily integrated with a lot of similar "ping" services (Cronitor, Cronhub, Pagerduty, etc...).

@hifi
Copy link
Collaborator

hifi commented Jan 28, 2023

An alternative way would be to use metrics scraping and to make sure enough metrics are exposed to detect error conditions. Possibly just tracking litestream_replica_wal_bytes is enough to track if the process is replicating successfully depending how much writes you are expecting to happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants