httpmonitor
httpmonitor is a small TUI application to monitor a single or multiple targets.


Install
Releases
Check the releases page for the full list of pre-built binaries.
- Download the release for your os/arch
- Unzip to archive to get the
httpmonitor binary
- Add the
httpmonitor binary to your PATH
Source
go install github.com/ricoberger/httpmonitor@latest
Usage
Usage of httpmonitor:
-body string
The body to send with the HTTP checks.
-config string
The path to the configuration file. (default "/Users/ricoberger/.httpmonitor.yaml")
-interval duration
The interval to run the HTTP checks. (default 5s)
-method string
The HTTP method to use for the checks. (default "GET")
-timeout duration
The timeout for the HTTP checks. (default 2s)
-url string
The url to monitor.
To monitor a single url, the following command can be used:
httpmonitor -url https://example.com -interval 1s
To monitor multiple urls, a configuration file can be used:
targets:
- name: example
url: https://example.com
method: GET
body:
username:
password:
token:
interval: 5s
timeout: 5s
Development
To build and run the binary the following commands can be used:
go build -o ./bin/httpmonitor .
./bin/httpmonitor
To publish a new version, a new tag must be created and pushed:
make release-patch
make release-minor
make release-major