Documentation ¶
Overview ¶
Package health provides cmdutil-compatible healthcheck utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTCPServer ¶
NewTCPServer returns a cmdutil.Server which emits a health metric whenever a TCP connection is opened on the configured port.
func NewTickingServer ¶
func NewTickingServer(logger logrus.FieldLogger, provider metrics.Provider, cfg Config) cmdutil.Server
NewTickingServer returns a cmdutil.Server which emits a health metric every cfg.MetricInterval seconds.
Types ¶
Click to show internal directories.
Click to hide internal directories.