Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RootCmd = &cobra.Command{ RunE: RunE, } )
Functions ¶
Types ¶
type MetricsServer ¶
type MetricsServer struct { Mgr ctrl.Manager Col *collector.Collector collectorcontrollerv1alpha1.MetricsPrometheusCollector }
MetricsServer registers the capacity metrics with the controller-manager It ensures metrics are only served by the leader by registerig the metrics collectors *after* this instance is elected as the leader rather than at startup.
func (*MetricsServer) ReadCollectorSpec ¶
func (ms *MetricsServer) ReadCollectorSpec() error
Click to show internal directories.
Click to hide internal directories.