metrics

package
v1.14.0-unstable Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SystemHealthStatusHealthy float64 = iota
	SystemHealthStatusWarning
	SystemHealthStatusError
)

Variables

This section is empty.

Functions

func GetHCOMetricSystemHealthStatus

func GetHCOMetricSystemHealthStatus(reason string) (float64, error)

GetHCOMetricSystemHealthStatus returns current value of gauge. If error is not nil then value is undefined

func GetOverwrittenModificationsCount

func GetOverwrittenModificationsCount(kind, name string) (float64, error)

GetOverwrittenModificationsCount returns current value of counter. If error is not nil then value is undefined

func GetUnsafeModificationsCount

func GetUnsafeModificationsCount(unsafeAnnotation string) (float64, error)

GetUnsafeModificationsCount returns current value of gauge. If error is not nil then value is undefined

func IncOverwrittenModifications

func IncOverwrittenModifications(kind, name string)

IncOverwrittenModifications increments counter by 1

func IsHCOMetricHyperConvergedExists

func IsHCOMetricHyperConvergedExists() (bool, error)

IsHCOMetricHyperConvergedExists returns true if the HyperConverged custom resource exists; else, return false

func ListMetrics

func ListMetrics() []operatormetrics.Metric

func SetHCOMetricHyperConvergedExists

func SetHCOMetricHyperConvergedExists()

SetHCOMetricHyperConvergedExists sets the gauge to 1 (true)

func SetHCOMetricHyperConvergedNotExists

func SetHCOMetricHyperConvergedNotExists()

SetHCOMetricHyperConvergedNotExists sets the gauge to 0 (false)

func SetHCOMetricMisconfiguredDescheduler added in v1.13.0

func SetHCOMetricMisconfiguredDescheduler(misconfigured bool)

func SetHCOMetricSingleStackIPv6True

func SetHCOMetricSingleStackIPv6True()

SetHCOMetricSingleStackIPv6True sets the gauge to 1 (true)

func SetHCOSystemError

func SetHCOSystemError(reason string)

func SetHCOSystemHealthy

func SetHCOSystemHealthy()

func SetHCOSystemWarning

func SetHCOSystemWarning(reason string)

func SetUnsafeModificationCount

func SetUnsafeModificationCount(count int, unsafeAnnotation string)

SetUnsafeModificationCount sets the gauge to the required number

func SetupMetrics

func SetupMetrics() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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