metrics

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace = "controller_sharding"

Variables

View Source
var (
	// AssignmentsTotal is a prometheus counter metric which holds the total number of shard assignments by the sharder
	// webhook per ControllerRing and GroupResource.
	// It has a label which refers to the ControllerRing and two labels which refer to the object's GroupResource.
	AssignmentsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: Namespace,
		Name:      "assignments_total",
		Help:      "Total number of shard assignments by the sharder webhook per ControllerRing and GroupResource",
	}, []string{"controllerring", "group", "resource"})

	// MovementsTotal is a prometheus counter metric which holds the total number of shard movements triggered by the
	// sharder controller per ControllerRing and GroupResource.
	// It has a label which refers to the ControllerRing and two labels which refer to the object's GroupResource.
	MovementsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: Namespace,
		Name:      "movements_total",
		Help:      "Total number of shard movements triggered by the sharder controller per ControllerRing and GroupResource",
	}, []string{"controllerring", "group", "resource"})

	// DrainsTotal is a prometheus counter metric which holds the total number of shard drains triggered by the sharder
	// controller per ControllerRing and GroupResource.
	// It has a label which refers to the ControllerRing and two labels which refer to the object's GroupResource.
	DrainsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: Namespace,
		Name:      "drains_total",
		Help:      "Total number of shard drains triggered by the sharder controller per ControllerRing and GroupResource",
	}, []string{"controllerring", "group", "resource"})

	// RingCalculationsTotal is a prometheus counter metric which holds the total
	// number of hash ring calculations per ControllerRing.
	// It has a label which refers to the ControllerRing.
	RingCalculationsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: Namespace,
		Name:      "ring_calculations_total",
		Help:      "Total number of hash ring calculations per ControllerRing",
	}, []string{"controllerring"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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