metrics

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// CoordinatorChangesCounter counts the total number of coordinator changes.
	CoordinatorChangesCounter = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "fdb_operator_coordinator_changes_total",
			Help: "Total number of coordinator changes performed on the cluster",
		},
		descClusterDefaultLabels,
	)

	// DescClusterCreated stores the creation time of the cluster.
	DescClusterCreated = prometheus.NewDesc(
		"fdb_operator_cluster_created_time",
		"Creation time in unix timestamp for Fdb Cluster.",
		descClusterDefaultLabels,
		nil,
	)

	// DescClusterStatus stores status metrics.
	DescClusterStatus = prometheus.NewDesc(
		"fdb_operator_cluster_status",
		"status of the Fdb Cluster.",
		append(descClusterDefaultLabels, "status_type"),
		nil,
	)
)

Functions

func CollectMetrics

func CollectMetrics(ch chan<- prometheus.Metric, cluster *fdbv1beta2.FoundationDBCluster)

CollectMetrics will collect the metrics for the provided fdbv1beta2.FoundationDBCluster and update all related metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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