metrics

package
v1.105.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace = "gardener_admission_controller"

Namespace is the metric namespace for the gardener-admission-controller.

Variables

View Source
var (
	// Factory is used for registering metrics in the controller-runtime metrics registry.
	Factory = promauto.With(runtimemetrics.Registry)

	// RejectedResources defines the counter rejected_resources_total.
	RejectedResources = Factory.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: Namespace,
			Name:      "rejected_resources_total",
			Help:      "Total number of resources rejected.",
		},
		[]string{
			"operation",
			"kind",
			"namespace",
			"reason",
		},
	)
)

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