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.
Click to show internal directories.
Click to hide internal directories.