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