metrics

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package metrics provides metrics and instrumentation functions for the metrics API server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetrics

func RegisterMetrics(registrationFunc func(metrics.Registerable) error) error

RegisterMetrics registers API server metrics, given a registration function.

Types

type FreshnessObserver

type FreshnessObserver interface {
	Observe(timestamp metav1.Time)
}

FreshnessObserver captures individual observations of the timestamp of metrics.

func NewFreshnessObserver

func NewFreshnessObserver(apiGroup string) FreshnessObserver

NewFreshnessObserver creates a FreshnessObserver for a given metrics API group.

Jump to

Keyboard shortcuts

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