updater

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 32

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

func Register

func Register()

Register initializes all metrics for VPA Updater

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

Jump to

Keyboard shortcuts

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