metrics

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package metrics provides Kube Startup CPU Boost metrics for Prometheus.

Index

Constants

View Source
const KubeStartupCPUBoostSubsystem = "boost"

Variables

This section is empty.

Functions

func AddBoostContainersTotal

func AddBoostContainersTotal(namespace string, boost string, value float64)

AddBoostContainersTotal adds the given value to the TotalContainerBoosts metric for a given namespace and boost name

func BoostConfigurations

func BoostConfigurations(namespace string) float64

BoostConfigurations returns value for a totalBoostConfigurations metric for a given namespace.

func BoostContainersActive

func BoostContainersActive(namespace string, boost string) float64

BoostContainersActive returns value for a totalContainerBoosts metric for a given namespace and boost name.

func BoostContainersTotal

func BoostContainersTotal(namespace string, boost string) float64

BoostContainersTotal returns value for a totalContainerBoosts metric for a given namespace and boost name.

func ClearBoostMetrics

func ClearBoostMetrics(namespace string, boost string)

ClearBoostMetrics clears all of relevant metrics for given namespace and boost

func ClearSystemMetrics

func ClearSystemMetrics()

ClearSystemMetrics clears all of the system metrics.

func DeleteBoostConfiguration

func DeleteBoostConfiguration(namespace string)

DeleteBoostConfiguration updates all of the relevant metrics when a boost configuration is deleted

func NewBoostConfiguration

func NewBoostConfiguration(namespace string)

NewBoostConfiguration updates all of the relevant metrics when a new boost configuration is created

func Register

func Register()

Register registers all of the Kube Startup CPU Boost metrics in the Prometheus registry.

func SetBoostContainersActive

func SetBoostContainersActive(namespace string, boost string, value float64)

SetBoostContainersActive updates the activeContainerBoosts metric for a given namespace and boost name with a given value

Types

This section is empty.

Jump to

Keyboard shortcuts

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