server

package
v2.14.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsServer

type MetricsServer struct {
	// contains filtered or unexported fields
}

MetricsServer is our own metrics server implementation that gathers the metrics from both the default prometheus registry and the ctrltuntimemetrics registry. The background is that the latter is not configurable at all and we don't want to force developers into using it, because that is counterintuitive and prone to be forgotten

func New

func New(listenAddress string) *MetricsServer

New returns a brand new *MetricsServer that gathers the metrics from both the prometheus default registry and the ctrlruntimemetrics registry

func (*MetricsServer) NeedLeaderElection

func (m *MetricsServer) NeedLeaderElection() bool

func (*MetricsServer) Start

func (m *MetricsServer) Start(stop <-chan struct{}) error

Start implements sigs.k8s.io/controller-runtime/pkg/manager.Runnable

Jump to

Keyboard shortcuts

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