metrics

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataSourceEmptyResultName     = "empty"
	DataSourcePVCResultName       = "pvc"
	DataSourceSnapshotResultName  = "snapshot"
	DataSourcePopulatorResultName = "populator"
	DataSourceInvalidResultName   = "invalid"
	DataSourceErrorResultName     = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsManager

type MetricsManager interface {
	// PrepareMetricsPath prepares the metrics path the specified pattern for
	// metrics managed by this MetricsManager.
	// If the "pattern" is empty (i.e., ""), it will not be registered.
	// An error will be returned if there is any.
	PrepareMetricsPath(mux *http.ServeMux, pattern string, logger promhttp.Logger) error

	// IncrementCount records a metric point for a validation operation.
	// result - the result of the validation operation.
	IncrementCount(result string)

	// GetRegistry() returns the metrics.KubeRegistry used by this metrics manager.
	GetRegistry() k8smetrics.KubeRegistry
}

func NewMetricsManager

func NewMetricsManager() MetricsManager

NewMetricsManager creates a new MetricsManager instance

Jump to

Keyboard shortcuts

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