Documentation ¶
Index ¶
- Constants
- func GetHCOMetricSystemHealthStatus(reason string) (float64, error)
- func GetOverwrittenModificationsCount(kind, name string) (float64, error)
- func GetUnsafeModificationsCount(unsafeAnnotation string) (float64, error)
- func IncOverwrittenModifications(kind, name string)
- func IsHCOMetricHyperConvergedExists() (bool, error)
- func ListMetrics() []operatormetrics.Metric
- func SetHCOMetricHyperConvergedExists()
- func SetHCOMetricHyperConvergedNotExists()
- func SetHCOMetricMisconfiguredDescheduler(misconfigured bool)
- func SetHCOMetricSingleStackIPv6True()
- func SetHCOSystemError(reason string)
- func SetHCOSystemHealthy()
- func SetHCOSystemWarning(reason string)
- func SetUnsafeModificationCount(count int, unsafeAnnotation string)
- func SetupMetrics() error
Constants ¶
const ( SystemHealthStatusHealthy float64 = iota SystemHealthStatusWarning SystemHealthStatusError )
Variables ¶
This section is empty.
Functions ¶
func GetHCOMetricSystemHealthStatus ¶
GetHCOMetricSystemHealthStatus returns current value of gauge. If error is not nil then value is undefined
func GetOverwrittenModificationsCount ¶
GetOverwrittenModificationsCount returns current value of counter. If error is not nil then value is undefined
func GetUnsafeModificationsCount ¶
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 ¶
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 ¶
SetUnsafeModificationCount sets the gauge to the required number
func SetupMetrics ¶
func SetupMetrics() error
Types ¶
This section is empty.