metrics

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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() (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 SetHCOMetricSingleStackIPv6True

func SetHCOMetricSingleStackIPv6True()

SetHCOMetricSingleStackIPv6True sets the gauge to 1 (true)

func SetHCOMetricSystemHealthStatus

func SetHCOMetricSystemHealthStatus(status float64)

SetHCOMetricSystemHealthStatus sets the gauge to status

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