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.
Click to show internal directories.
Click to hide internal directories.