vmistats

package
v1.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupVMICollector

func SetupVMICollector(
	vmiInformer cache.SharedIndexInformer,
	clusterInstanceTypeInformer cache.SharedIndexInformer, instanceTypeInformer cache.SharedIndexInformer,
	clusterPreferenceInformer cache.SharedIndexInformer, preferenceInformer cache.SharedIndexInformer,
	clusterConfig *virtconfig.ClusterConfig,
)

does VMI informer stuff

Types

type VMICollector

type VMICollector struct {
	// contains filtered or unexported fields
}

func (*VMICollector) Collect

func (co *VMICollector) Collect(ch chan<- prometheus.Metric)

Note that Collect could be called concurrently

func (*VMICollector) Describe

func (co *VMICollector) Describe(_ chan<- *prometheus.Desc)

func (*VMICollector) UpdateFromAnnotations added in v1.0.0

func (co *VMICollector) UpdateFromAnnotations(vmc *vmiCountMetric, annotations map[string]string)

Jump to

Keyboard shortcuts

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