metrics

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dummy = &dummy{
	MetricsRecorder: koopercontroller.DummyMetricsRecorder,
}

Dummy is a handy instnce of a dummy instrumenter, most of the times it will be used on tests.

Functions

This section is empty.

Types

type Recorder added in v1.1.0

type Recorder interface {
	koopercontroller.MetricsRecorder

	SetClusterOK(namespace string, name string)
	SetClusterError(namespace string, name string)
	DeleteCluster(namespace string, name string)
}

Instrumenter is the interface that will collect the metrics and has ability to send/expose those metrics.

func NewRecorder added in v1.1.0

func NewRecorder(namespace string, reg prometheus.Registerer) Recorder

NewPrometheusMetrics returns a new PromMetrics object.

Jump to

Keyboard shortcuts

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