package slis
import "k8s.io/component-base/metrics/prometheus/slis"
Index ¶
- Variables
- func ObserveHealthcheck(ctx context.Context, name string, healthcheckType string, status HealthcheckStatus) error
- func Register(registry k8smetrics.KubeRegistry)
- func ResetHealthMetrics()
- type HealthcheckStatus
- type SLIMetrics
- type SLIMetricsWithReset
Variables ¶
var ( // Registry exposes the SLI registry so that additional SLIs can be // added on a per-component basis. Registry = metrics.NewKubeRegistry() )
Functions ¶
func ObserveHealthcheck ¶
func ObserveHealthcheck(ctx context.Context, name string, healthcheckType string, status HealthcheckStatus) error
func Register ¶
func Register(registry k8smetrics.KubeRegistry)
func ResetHealthMetrics ¶
func ResetHealthMetrics()
Types ¶
type HealthcheckStatus ¶
type HealthcheckStatus string
const ( Success HealthcheckStatus = "success" Error HealthcheckStatus = "error" )
type SLIMetrics ¶
type SLIMetrics struct{}
func (SLIMetrics) Install ¶
func (s SLIMetrics) Install(m mux)
Install adds the DefaultMetrics handler
type SLIMetricsWithReset ¶
type SLIMetricsWithReset struct{}
func (SLIMetricsWithReset) Install ¶
func (s SLIMetricsWithReset) Install(m mux)
Install adds the DefaultMetrics handler
Source Files ¶
metrics.go registry.go routes.go
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 12 hours ago –
Tools for package owners.