Registry / observability / heptiolabs-healthcheck

heptiolabs-healthcheck

JSON →
library0.0.0-20211123025425-613501dd5debgogounverified

Package healthcheck helps you implement Kubernetes liveness and readiness checks for your application, supporting synchronous and asynchronous checks with optional Prometheus metrics.

go get github.com/heptiolabs/healthcheck
INSTALL
IMPORT
SIG · HEPTIOLABS-HEALTHC
H
heptiolabs-healthcheck
observabilitygov0.0.0-20211123025425-613501dd5deb
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

healthcheck
github.com/heptiolabs/healthcheck

Creates a health check handler with a goroutine threshold liveness check.

package main import ( "net/http" "github.com/heptiolabs/healthcheck" ) func main() { health := healthcheck.NewHandler() health.AddLivenessCheck("goroutine-threshold", healthcheck.GoroutineCountCheck(100)) http.HandleFunc("/health", health.LiveEndpoint) http.ListenAndServe(":8080", nil) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20211123025425-613501dd5deblatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
OpenAI (training)
1
Resources
heptiolabs-healthcheck — go get heptiolabs-healthcheck · libregistry