...

Package slis

import "k8s.io/component-base/metrics/prometheus/slis"
Overview
Index

Overview ▾

Variables

var (
    // Registry exposes the SLI registry so that additional SLIs can be
    // added on a per-component basis.
    Registry = metrics.NewKubeRegistry()
)

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()

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