monitoring

package
v1.23.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PodStatusVec                *prometheus.GaugeVec
	DatacenterStatusVec         *prometheus.GaugeVec
	DatacenterOperatorStatusVec *prometheus.GaugeVec
)

Functions

func GetMetricValue added in v1.22.0

func GetMetricValue(name string, labels map[string]string) (float64, error)

func RemoveDatacenterPods

func RemoveDatacenterPods(namespace, cluster, datacenter string)

func RemovePodStatusMetric

func RemovePodStatusMetric(pod *corev1.Pod)

func SetDatacenterConditionMetric added in v1.22.0

func SetDatacenterConditionMetric(dc *api.CassandraDatacenter, conditionType api.DatacenterConditionType, status corev1.ConditionStatus)

func UpdateOperatorDatacenterProgressStatusMetric added in v1.22.0

func UpdateOperatorDatacenterProgressStatusMetric(dc *api.CassandraDatacenter, state api.ProgressState)

func UpdatePodStatusMetric

func UpdatePodStatusMetric(pod *corev1.Pod)

Types

type PodStatus

type PodStatus string
const (
	PodStatusInitializing    PodStatus = "Initializing"
	PodStatusReady           PodStatus = "Ready"
	PodStatusPending         PodStatus = "Pending"
	PodStatusError           PodStatus = "Error"
	PodStatusDecommissioning PodStatus = "Decommissioning"
)

Jump to

Keyboard shortcuts

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