Documentation ¶
Overview ¶
Package healthcheckextension implements an extension that enables an HTTP endpoint that can be used to check the overall health and status of the service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for HealthCheck extension.
Types ¶
type Config ¶
type Config struct { confighttp.ServerConfig `mapstructure:",squash"` // Path represents the path the health check service will serve. // The default path is "/". Path string `mapstructure:"path"` // ResponseBody represents the body of the response returned by the health check service. // This overrides the default response that it would return. ResponseBody *ResponseBodySettings `mapstructure:"response_body"` // CheckCollectorPipeline contains the list of settings of collector pipeline health check CheckCollectorPipeline checkCollectorPipelineSettings `mapstructure:"check_collector_pipeline"` }
Config has the configuration for the extension enabling the health check extension, used to report the health status of the service.
type ResponseBodySettings ¶ added in v0.74.0
type ResponseBodySettings struct { // Healthy represents the body of the response returned when the collector is healthy. // The default value is "" Healthy string `mapstructure:"healthy"` // Unhealthy represents the body of the response returned when the collector is unhealthy. // The default value is "" Unhealthy string `mapstructure:"unhealthy"` }
Click to show internal directories.
Click to hide internal directories.