gezondheid

command module
v0.0.0-...-ee7f901 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 1 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL