Documentation ¶
Overview ¶
Package updater (aka metrics_updater) - code for metrics of VPA Updater
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEvictedPod ¶
func AddEvictedPod(vpaSize int)
AddEvictedPod increases the counter of pods evicted by Updater, by given VPA size
func NewExecutionTimer ¶
func NewExecutionTimer() *metrics.ExecutionTimer
NewExecutionTimer provides a timer for Updater's RunOnce execution
Types ¶
type SizeBasedGauge ¶
type SizeBasedGauge struct {
// contains filtered or unexported fields
}
SizeBasedGauge is a wrapper for incrementally recording values indexed by log2(VPA size)
func NewControlledPodsCounter ¶
func NewControlledPodsCounter() *SizeBasedGauge
NewControlledPodsCounter returns a wrapper for counting Pods controlled by Updater
func NewEvictablePodsCounter ¶
func NewEvictablePodsCounter() *SizeBasedGauge
NewEvictablePodsCounter returns a wrapper for counting Pods which are matching eviction criteria
func NewVpasWithEvictablePodsCounter ¶
func NewVpasWithEvictablePodsCounter() *SizeBasedGauge
NewVpasWithEvictablePodsCounter returns a wrapper for counting VPA objects with Pods matching eviction criteria
func NewVpasWithEvictedPodsCounter ¶
func NewVpasWithEvictedPodsCounter() *SizeBasedGauge
NewVpasWithEvictedPodsCounter returns a wrapper for counting VPA objects with evicted Pods
func (*SizeBasedGauge) Add ¶
func (g *SizeBasedGauge) Add(vpaSize int, value int)
Add increases the counter for the given VPA size
func (*SizeBasedGauge) Observe ¶
func (g *SizeBasedGauge) Observe()
Observe stores the recorded values into metrics object associated with the wrapper