health

command
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

README

Health

Health is a healthchecking sidecar

It exposes /health as a http endpoint and calls the rpc endpoint Debug.Health

Every go-micro service exposes Debug.Health. We can use this for liveness checks.

Usage

Install
go get github.com/micro/micro/cmd/health

or

docker pull microhq/health
Run

Run the healthchecker specifying the service name and address to check

health --server_name=greeter --server_address=localhost:9091
Call

Call the healthchecker on localhost:8080

curl http://localhost:8080/health

Response will be 200 OK

OK

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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