metrics

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ManagedVirtualMachine
	ManagedVirtualMachineCount = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "kubemox_managed_virtual_machine_count",
		Help: "Number of managedVirtualMachines exists in Proxmox",
	})
	ManagedVirtualMachineCPUCores = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "kubemox_managed_virtual_machine_cpu_cores",
		Help: "Number of CPU cores of managedVirtualMachine",
	}, []string{"name", "namespace"})
	ManagedVirtualMachineMemory = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "kubemox_managed_virtual_machine_memory",
		Help: "Memory of managedVirtualMachine as MB",
	}, []string{"name", "namespace"})
	ManagedVirtualMachineRunningCount = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "kubemox_managed_virtual_machine_running_count",
		Help: "Number of running managedVirtualMachines",
	})
	ManagedVirtualMachineStoppedCount = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "kubemox_managed_virtual_machine_stopped_count",
		Help: "Number of stopped managedVirtualMachines",
	})
)
View Source
var KubemoxMetrics = []prometheus.Collector{

	virtualMachineCount,
	virtualMachineCPUCores,
	virtualMachineMemory,
	virtualMachineRunningCount,
	virtualMachineStoppedCount,

	ManagedVirtualMachineCount,
	ManagedVirtualMachineCPUCores,
	ManagedVirtualMachineMemory,
	ManagedVirtualMachineRunningCount,
	ManagedVirtualMachineStoppedCount,

	containerCount,
	containerCPUCores,
	containerMemory,

	virtualMachineTemplateCount,
	virtualMachineTemplateCPUCores,
	virtualMachineTemplateMemory,

	virtualMachineSetCount,
	virtualMachineSetCPUCores,
	virtualMachineSetMemory,
	virtualMachineSetReplicas,

	virtualMachineSnapshotCount,
	virtualMachineSnapshotPerVirtualMachineCount,

	virtualMachineSnapshotPolicyCount,

	storageDownloadURLCount,

	customCertificateCount,
}

Functions

func UpdateProxmoxMetrics added in v0.2.1

func UpdateProxmoxMetrics(ctx context.Context, kubeClient client.Client)

Types

This section is empty.

Jump to

Keyboard shortcuts

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