metrics

package
v1.27.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 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,
		})
)

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