Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SizeClassQueueKey ¶
type SizeClassQueueKey struct {
// contains filtered or unexported fields
}
SizeClassQueueKey can be used as a map key to uniquely identify a size class queue that is tracked by bb_scheduler. SizeClassQueueKeys can both be constructed from Protobuf fields stored in a configuration file, and from Prometheus metric names.
func NewSizeClassQueueKeyFromConfiguration ¶
func NewSizeClassQueueKeyFromConfiguration(instanceNamePrefix string, platform *remoteexecution.Platform, sizeClass uint32) SizeClassQueueKey
NewSizeClassQueueKeyFromConfiguration creates a SizeClassQueueKey based on values provided in the bb_autoscaler configuration file.
func NewSizeClassQueueKeyFromMetric ¶
func NewSizeClassQueueKeyFromMetric(metric model.Metric) (SizeClassQueueKey, error)
NewSizeClassQueueKeyFromMetric creates a SizeClassQueueKey based on labels in a Prometheus metric name.
Click to show internal directories.
Click to hide internal directories.