Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorStateMetrics ¶
ErrorStateMetrics is a Prometheus metric meant to show Kuberhealthy has error
func GenerateMetrics ¶
GenerateMetrics takes the state and returns it in the Prometheus format
func WriteMetricError ¶
func WriteMetricError(w http.ResponseWriter, state health.State) error
WriteMetricError handles errors in delivering metrics
Types ¶
type InfluxClient ¶
type InfluxClient struct {
// contains filtered or unexported fields
}
InfluxClient defines values needed to push to InfluxDB
func NewInfluxClient ¶
func NewInfluxClient(input InfluxClientInput) (*InfluxClient, error)
NewInfluxClient creates an InfluxClient that can be used to push metrics
type InfluxClientInput ¶
type InfluxClientInput struct { Database string Config InfluxConfig }
InfluxClientInput defines values needed to push to InfluxDB
type InfluxConfig ¶
type InfluxConfig struct { URL url.URL UnixSocket string Username string Password string UserAgent string Timeout time.Duration Precision string WriteConsistency string UnsafeSsl bool Proxy func(req *http.Request) (*url.URL, error) TLS *tls.Config }
InfluxConfig is cast to an influx.Config object
Click to show internal directories.
Click to hide internal directories.