metrics

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Reconciles = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: prefix + "_reconcile_total",
			Help: "Total number of reconciliations per controller",
		},
		[]string{"controller"},
	)
	ReconcileErrors = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: prefix + "_reconcile_errors_total",
			Help: "Total number of reconciliation errors per controller and type",
		},
		[]string{"controller", "type"},
	)
	Requests = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: prefix + "_requests_total",
			Help: "Kubernetes API server requests per controller and method",
		},
		[]string{"controller", "method"},
	)
	Operations = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: prefix + "_operations_total",
			Help: "Dependent operations per controller and action",
		},
		[]string{"controller", "action"},
	)
	CreatedClients = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: prefix + "_created_clients_total",
			Help: "Kubernetes API clients created since the controller was started",
		},
		[]string{"controller"},
	)
	ActiveClients = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: prefix + "_active_clients_total",
			Help: "Currently active Kubernetes API clients",
		},
		[]string{"controller"},
	)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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