healthcheck

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

Health check tool to monitor services (e.g. for use with Docker health checks)

Github Release GoDoc Go Report Card Build/Test Status

This package provides a single binary capable of performing a wide set of health calls to different services, e.g. HTTP(S) & SQL, as well as low-level protocol endpoints, e.g. TCP. It is entended to be used in Docker (Compose) deployments, but can be applied to different scenarios just as well.

Installation

go get -u github.com/fako1024/healthcheck

Since only native Go functionality is used, it is safe to compile the tool without CGO in order to maximize interoperability, e.g. on Alpine systems:

CGO_ENABLED=0 go build

Examples

Check a web service running on localhost
./healthcheck --http.uri http://127.0.0.1/ && echo "ok"
ok
Check an SSH server running on localhost
./healthcheck --ssh.endpoint 127.0.0.1:22 && echo "ok"
ok

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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