slis

package
v0.31.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL