metrics

package
v0.0.0-...-1711f34 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Namespace      = "karpenter"
	Subsystem      = "disruption_controller"
	KindLabel      = "kind"
	NameLabel      = "name"
	AnnotationType = "type"
	SucceededLabel = "succeeded"
)

Variables

View Source
var (
	PatchCounter = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: Namespace,
			Subsystem: Subsystem,
			Name:      "patch_operations_total",
			Help:      "Number of patch events in total by Karpenter Disruption Controller. Labeled by resource kind, resource name, and success status.",
		},
		[]string{
			KindLabel,
			NameLabel,
			SucceededLabel,
		},
	)
	FailedAnnotationParseCounter = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: Namespace,
			Subsystem: Subsystem,
			Name:      "annotation_parse_failed",
			Help:      "Number of annotation parsing failures in total by Karpenter Disruption Controller. Labeled by annotation type and pod name.",
		},
		[]string{
			AnnotationType,
			NameLabel,
		},
	)
)

Functions

func Register

func Register()

Types

This section is empty.

Jump to

Keyboard shortcuts

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