Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricsController ¶
func NewMetricsController(name string, operatorClient v1helpers.OperatorClient, recorder events.Recorder, serviceCAPath string, metricsSyncFunc MetricsSyncFunc) factory.Controller
NewMetricsController creates a new metrics controller for the given name using an in-cluster prometheus client. The given service CA path will be used to read out the CA bundle being trusted by the prometheus client. The controller executes the given metrics sync function every minute.
Types ¶
type MetricsSyncFunc ¶
type MetricsSyncFunc func(ctx context.Context, controllerContext factory.SyncContext, promClient prometheusv1.API) error
MetricsSyncFunc is used to set the controller synchronization function for metrics controller. It includes the prometheus client.
Click to show internal directories.
Click to hide internal directories.