Note
This was written by somebody who does not know Rust! Please be patient with any bugs.
Sends a heartbeat to a URL if it can connect to a Postgres DB.
coming soon™
- Run
cargo build --release - The executable can be found in
target/release/postgres-heartbeat - Set the following environment variables:
HEART_SECHow many seconds should be between request attemptsHEART_URLThe URL to send the heartbeat toHEART_CONNThe connection URL of the postgresql database
- Run the
postgres-heartbeatexecutable