Documentation ¶
Overview ¶
Package metrics provides Kube Startup CPU Boost metrics for Prometheus.
Index ¶
- Constants
- func AddBoostContainersTotal(namespace string, boost string, value float64)
- func BoostConfigurations(namespace string) float64
- func BoostContainersActive(namespace string, boost string) float64
- func BoostContainersTotal(namespace string, boost string) float64
- func ClearBoostMetrics(namespace string, boost string)
- func ClearSystemMetrics()
- func DeleteBoostConfiguration(namespace string)
- func NewBoostConfiguration(namespace string)
- func Register()
- func SetBoostContainersActive(namespace string, boost string, value float64)
Constants ¶
const KubeStartupCPUBoostSubsystem = "boost"
Variables ¶
This section is empty.
Functions ¶
func AddBoostContainersTotal ¶
AddBoostContainersTotal adds the given value to the TotalContainerBoosts metric for a given namespace and boost name
func BoostConfigurations ¶
BoostConfigurations returns value for a totalBoostConfigurations metric for a given namespace.
func BoostContainersActive ¶
BoostContainersActive returns value for a totalContainerBoosts metric for a given namespace and boost name.
func BoostContainersTotal ¶
BoostContainersTotal returns value for a totalContainerBoosts metric for a given namespace and boost name.
func ClearBoostMetrics ¶
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 ¶
SetBoostContainersActive updates the activeContainerBoosts metric for a given namespace and boost name with a given value
Types ¶
This section is empty.