Documentation ¶
Index ¶
- Variables
- func DeleteMachineHealthCheckNodesCovered(name string, namespace string)
- func InitializeMachineHealthCheckMetrics()
- func InitializeNodeHealthCheckMetrics()
- func ObserveMachineHealthCheckNodesCovered(name string, namespace string, count int)
- func ObserveMachineHealthCheckRemediationSuccess(name string, namespace string)
- func ObserveMachineHealthCheckShortCircuitDisabled(name string, namespace string)
- func ObserveMachineHealthCheckShortCircuitEnabled(name string, namespace string)
- func ObserveNodeHealthCheckOldRemediationCR(name, namespace string)
- func ObserveNodeHealthCheckRemediationCreated(name, namespace, remediation string)
- func ObserveNodeHealthCheckRemediationDeleted(name, namespace, remediation string)
- func ObserveNodeHealthCheckUnhealthyNodeDuration(name, namespace, remediation string, duration time.Duration)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MachineHealthCheckNodesCovered is a Prometheus metric, which reports the number of nodes covered by MachineHealthChecks MachineHealthCheckNodesCovered = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "mapi_machinehealthcheck_nodes_covered", Help: "Number of nodes covered by MachineHealthChecks", }, []string{"name", "namespace"}, ) // MachineHealthCheckRemediationSuccessTotal is a Prometheus metric, which reports the number of successful remediations by MachineHealthChecks MachineHealthCheckRemediationSuccessTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "mapi_machinehealthcheck_remediation_success_total", Help: "Number of successful remediations performed by MachineHealthChecks", }, []string{"name", "namespace"}, ) // MachineHealthCheckShortCircuit is a Prometheus metric, which reports when the named MachineHealthCheck is currently short-circuited (0=no, 1=yes) MachineHealthCheckShortCircuit = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "mapi_machinehealthcheck_short_circuit", Help: "Short circuit status for MachineHealthCheck (0=no, 1=yes)", }, []string{"name", "namespace"}, ) )
Functions ¶
func DeleteMachineHealthCheckNodesCovered ¶ added in v0.7.0
func InitializeMachineHealthCheckMetrics ¶ added in v0.7.0
func InitializeMachineHealthCheckMetrics()
func InitializeNodeHealthCheckMetrics ¶
func InitializeNodeHealthCheckMetrics()
func ObserveMachineHealthCheckNodesCovered ¶ added in v0.7.0
func ObserveMachineHealthCheckRemediationSuccess ¶ added in v0.7.0
TODO this was used for internal remediation only, reconsider when / where to call from for external remediation
func ObserveMachineHealthCheckShortCircuitDisabled ¶ added in v0.7.0
func ObserveMachineHealthCheckShortCircuitEnabled ¶ added in v0.7.0
func ObserveNodeHealthCheckOldRemediationCR ¶
func ObserveNodeHealthCheckOldRemediationCR(name, namespace string)
func ObserveNodeHealthCheckRemediationCreated ¶ added in v0.6.0
func ObserveNodeHealthCheckRemediationCreated(name, namespace, remediation string)
func ObserveNodeHealthCheckRemediationDeleted ¶ added in v0.6.0
func ObserveNodeHealthCheckRemediationDeleted(name, namespace, remediation string)
func ObserveNodeHealthCheckUnhealthyNodeDuration ¶ added in v0.6.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.