metrics

package
v0.0.6-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	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"})
)

Functions

func DecManagedVirtualMachineCount

func DecManagedVirtualMachineCount()

func DecVirtualMachineCount

func DecVirtualMachineCount()

func IncManagedVirtualMachineCount

func IncManagedVirtualMachineCount()

func IncVirtualMachineCount

func IncVirtualMachineCount()

func SetManagedVirtualMachineCPUCores

func SetManagedVirtualMachineCPUCores(name, namespace string, cores float64)

func SetManagedVirtualMachineMemory

func SetManagedVirtualMachineMemory(name, namespace string, memory float64)

func SetVirtualMachineCPUCores

func SetVirtualMachineCPUCores(name, namespace string, cores float64)

func SetVirtualMachineMemory

func SetVirtualMachineMemory(name, namespace string, memory float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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