metrics

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

	// RingCalculationsTotal is a prometheus counter metric which holds the total
	// number of shard ring calculations per ring kind.
	// It has three labels which refer to the ring's kind, name, and namespace.
	RingCalculationsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "controller_sharding_ring_calculations_total",
		Help: "Total number of shard ring calculations per ring kind",
	}, []string{"kind", "namespace", "name"})
)

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