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_SEC
How many seconds should be between request attemptsHEART_URL
The URL to send the heartbeat toHEART_CONN
The connection URL of the postgresql database
- Run the
postgres-heartbeat
executable