metrics

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ReasonSizeExceeded is the value for reason when a resource exceeded the maximum allowed size.
	ReasonSizeExceeded = "Size Exceeded"

	// ReasonRejectedKubeconfig is the value for reason when a kubeconfig was rejected.
	ReasonRejectedKubeconfig = "Rejected Kubeconfig"
)

Variables

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

	// InvalidWebhookRequest defines the counter invalid_webhook_requests_total.
	InvalidWebhookRequest = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: namespace,
			Name:      "invalid_webhook_requests_total",
			Help:      "Total number of invalid webhook requests.",
		},
		[]string{},
	)
)

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