var ( // Registry exposes the SLI registry so that additional SLIs can be // added on a per-component basis. Registry = metrics.NewKubeRegistry() )
func ObserveHealthcheck(ctx context.Context, name string, healthcheckType string, status HealthcheckStatus) error
func Register(registry k8smetrics.KubeRegistry)
func ResetHealthMetrics()
type HealthcheckStatus string
const ( Success HealthcheckStatus = "success" Error HealthcheckStatus = "error" )
type SLIMetrics struct{}
func (s SLIMetrics) Install(m mux)
Install adds the DefaultMetrics handler
type SLIMetricsWithReset struct{}
func (s SLIMetricsWithReset) Install(m mux)
Install adds the DefaultMetrics handler