metrics

package
v1.33.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more 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(metrics.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