metricscontroller

package
v0.0.0-...-e59cd12 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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.

Jump to

Keyboard shortcuts

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