Skip to content

BobbieGoede/gezondheid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

note The main purpose of this project is for me to learn Go, feedback is much appreciated!

Gezondheid

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

Usage

Monitor

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.

Add endpoint to watch

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.

List an endpoint (WIP)

To list all configured endpoint for monitoring, use the following command:

gezondheid list

not yet implemented.

Remove an endpoint

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.

Plugins

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages