A lightweight CLI tool for monitoring services and reporting to healthchecks.io.
Performs health checks on your services and automatically reports success/failure to healthchecks.io monitoring service.
go install github.com/meysam81/healthchecks-client@latest
healthchecks-client http-check \
--ping-url https://hc-ping.com/your-uuid \
--http-target http://your-service.com/health
--ping-url, -p Your healthchecks.io ping URL (required)
--http-target, -t Service endpoint to check (required)
--timeout Request timeout in seconds (default: 5)
--http-method HTTP method to use (default: GET)
--status-code Expected HTTP status code (default: 200)
healthchecks-client version
# Monitor a web service
healthchecks-client http-check \
-p https://hc-ping.com/12345678-1234-1234-1234-123456789abc \
-t https://api.example.com/health \
--timeout 10 \
--status-code 200
- Sends a "start" ping to healthchecks.io
- Performs the health check on your target service
- Reports success (exit code 0) or failure (exit code 1) back to healthchecks.io
Apache License 2.0 - see LICENSE for details.