component-basek8s.io/component-base/metrics/prometheus/health Index | Files

package health

import "k8s.io/component-base/metrics/prometheus/health"

Index

Functions

func ObserveHealthcheck

func ObserveHealthcheck(ctx context.Context, name string, healthcheckType HealthcheckType, status HealthcheckStatus) error

func ResetHealthMetrics

func ResetHealthMetrics()

Types

type HealthcheckStatus

type HealthcheckStatus string
const (
	Success HealthcheckStatus = "success"
	Error   HealthcheckStatus = "error"
	Pending HealthcheckStatus = "pending"
)

type HealthcheckType

type HealthcheckType string
const (
	Livez   HealthcheckType = "livez"
	Readyz  HealthcheckType = "readyz"
	Healthz HealthcheckType = "healthz"
)

Source Files

metrics.go

Version
v0.26.0-alpha.1
Published
Sep 20, 2022
Platform
js/wasm
Imports
4 packages
Last checked
34 minutes ago

Tools for package owners.