note The main purpose of this project is for me to learn Go, feedback is much appreciated!
Gezondheid /ɣəˈzɔntˌɦɛi̯t/
(Dutch for "Health") is a simple CLI tool to periodically check the health of URLs.
👷♂️ This project (and readme) is under construction
To monitor the configured endpoint run the following command:
gezondheid monitor -u <url>
- -u : Replace with the URL of the endpoint you want to monitor. Make sure to provide the complete URL, including the protocol (e.g., http:// or https://).
This command allows you to actively monitor the health and status of an endpoint.
To add a new endpoint for monitoring, use the following command:
gezondheid add -n <name> -u <url>
- -n : Replace with a descriptive name for the endpoint you are adding. This name is used to identify the endpoint in your monitoring configuration.
- -u : Replace with the URL of the endpoint you want to monitor. Make sure to provide the complete URL, including the protocol (e.g., http:// or https://).
This command will add the specified endpoint to your existing settings.yaml file, or generate a new one if it doesn't exist.
To list all configured endpoint for monitoring, use the following command:
gezondheid list
not yet implemented.
To remove an endpoint for monitoring, use the following command:
gezondheid remove -n <name>
- -n : Replace with a the name of the endpoint which configuration you want to remove.
This command allows you to easily eliminate endpoints that are no longer needed in your monitoring setup.
Behaviour can be extended with 3rd party plugins like gezondheid-hook to add webhook support when health checks fail.
- name: test.test
url: https://test.test
interval: 10s
plugins:
- name: "gezondheid-hook.so"
config:
method: "POST"
url: "https://webhook.test"
statusCodeMinimum: 200