metrics

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PodResourceApiCallsFailure = promauto.With(ctrlmetrics.Registry).NewCounterVec(prometheus.CounterOpts{
		Name: "rte_podresource_api_call_failures_total",
		Help: "The total number of podresource api calls that failed by the updater",
	}, []string{"node", "function_name"})

	NodeResourceTopologyWrites = promauto.With(ctrlmetrics.Registry).NewCounterVec(prometheus.CounterOpts{
		Name: "rte_noderesourcetopology_writes_total",
		Help: "The total number of NodeResourceTopology writes",
	}, []string{"node", "operation", "trigger"})

	OperationDelay = promauto.With(ctrlmetrics.Registry).NewGaugeVec(prometheus.GaugeOpts{
		Name: "rte_operation_delay_milliseconds",
		Help: "The latency between exporting stages, milliseconds",
	}, []string{"node", "operation_name", "trigger"})

	WakeupDelay = promauto.With(ctrlmetrics.Registry).NewGaugeVec(prometheus.GaugeOpts{
		Name: "rte_wakeup_delay_milliseconds",
		Help: "The wakeup delay of the monitor code, milliseconds",
	}, []string{"node", "trigger"})
)

Functions

func GetNodeName

func GetNodeName() string

GetNodeName is meant for testing purposes

func Setup

func Setup(nname string) error

func UpdateNodeResourceTopologyWritesMetric

func UpdateNodeResourceTopologyWritesMetric(operation, trigger string)

func UpdateOperationDelayMetric

func UpdateOperationDelayMetric(opName, trigger string, operationDelay float64)

func UpdatePodResourceApiCallsFailureMetric

func UpdatePodResourceApiCallsFailureMetric(funcName string)

func UpdateWakeupDelayMetric

func UpdateWakeupDelayMetric(trigger string, wakeupDelay float64)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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