metrics

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDefaultCollectors

func RegisterDefaultCollectors(reg prometheus.Registerer)

Types

type Framework

type Framework struct {
	// contains filtered or unexported fields
}

func (*Framework) IncFailIfnotSuccess

func (m *Framework) IncFailIfnotSuccess(method string, pod *corev1.Pod, ignored bool, status *framework.Status)

func (*Framework) IncMethodCall

func (m *Framework) IncMethodCall(method string, pod *corev1.Pod, ignored bool)

func (*Framework) IncReserveOverBudget

func (m *Framework) IncReserveOverBudget(ignored bool, node *state.Node)

type Node

type Node struct {
	// InheritedLabels are the labels on the node that are directly used as part of the metrics
	InheritedLabels []string
	// contains filtered or unexported fields
}

func (*Node) Remove

func (m *Node) Remove(node *state.Node)

func (*Node) Update

func (m *Node) Update(node *state.Node)

type Plugin

type Plugin struct {
	Framework Framework
	Nodes     Node
	Reconcile Reconcile

	ResourceRequests      *prometheus.CounterVec
	ValidResourceRequests *prometheus.CounterVec

	K8sOps *prometheus.CounterVec
	// contains filtered or unexported fields
}

func BuildPluginMetrics

func BuildPluginMetrics(nodeMetricLabels map[string]string, reg prometheus.Registerer) Plugin

func (*Plugin) RecordK8sOp

func (m *Plugin) RecordK8sOp(opKind string, objKind string, objName string, err error)

type Reconcile

type Reconcile struct {
	WaitDurations    prometheus.Histogram
	ProcessDurations *prometheus.HistogramVec
	Failing          *prometheus.GaugeVec
	Panics           *prometheus.CounterVec
}

Jump to

Keyboard shortcuts

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