metrics

package
v1.32.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const ResourceClaimSubsystem = "resourceclaim_controller"

ResourceClaimSubsystem - subsystem name used for ResourceClaim creation

Variables

View Source
var (
	// ResourceClaimCreateAttempts tracks the number of
	// ResourceClaims().Create calls (both successful and unsuccessful)
	ResourceClaimCreateAttempts = metrics.NewCounter(
		&metrics.CounterOpts{
			Subsystem:      ResourceClaimSubsystem,
			Name:           "create_attempts_total",
			Help:           "Number of ResourceClaims creation requests",
			StabilityLevel: metrics.ALPHA,
		})
	// ResourceClaimCreateFailures tracks the number of unsuccessful
	// ResourceClaims().Create calls
	ResourceClaimCreateFailures = metrics.NewCounter(
		&metrics.CounterOpts{
			Subsystem:      ResourceClaimSubsystem,
			Name:           "create_failures_total",
			Help:           "Number of ResourceClaims creation request failures",
			StabilityLevel: metrics.ALPHA,
		})
	// NumResourceClaims tracks the current number of ResourceClaims.
	NumResourceClaims = metrics.NewGauge(
		&metrics.GaugeOpts{
			Subsystem:      ResourceClaimSubsystem,
			Name:           "resource_claims",
			Help:           "Number of ResourceClaims",
			StabilityLevel: metrics.ALPHA,
		})
	// NumAllocatedResourceClaims tracks the current number of allocated ResourceClaims.
	NumAllocatedResourceClaims = metrics.NewGauge(
		&metrics.GaugeOpts{
			Subsystem:      ResourceClaimSubsystem,
			Name:           "allocated_resource_claims",
			Help:           "Number of allocated ResourceClaims",
			StabilityLevel: metrics.ALPHA,
		})
)

Functions

func RegisterMetrics

func RegisterMetrics()

RegisterMetrics registers ResourceClaim metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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