Skip to content
simple healthchecker that checks your internal monitoring services
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor health May 30, 2019
.gitignore health May 30, 2019
LICENSE health May 30, 2019
main.go fix error type check Jun 3, 2019


health - web server serving a /health endpoint, for each request it performs health checks on other configurable services and reflects the result

Useful for letting external alerting tools watch your monitoring infrastructure.

	$ cat >health.conf <<EOF
			Name: alertmanager
			URL: http://monitor:9093/api/v1/status
			Name: prometheus
			URL: http://monitor:9090/status

	$ health testconfig health.conf
	config OK

	$ ./health serve  -address localhost:8100 -monitor-address localhost:8101 health.conf 
	health version dev, listening on localhost:8100

	$ curl http://localhost:8100/health

	$ curl http://localhost:8100/health
	500 internal server error - unhealthy: prometheus

	# Health has logged the failure. Possibly a timeout after 5 seconds, or non-2xx HTTP response.

Build info is exposed on localhost:8001/info.
Prometheus metrics are exposed on localhost:8001/metrics.
You can’t perform that action at this time.