prometheus

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrometheusCollectionTimeout            = vms.CollectionTimeout
	MigrateVmiDataRemainingMetricName      = "kubevirt_migrate_vmi_data_remaining_bytes"
	MigrateVmiDataProcessedMetricName      = "kubevirt_migrate_vmi_data_processed_bytes"
	MigrateVmiDirtyMemoryRateMetricName    = "kubevirt_migrate_vmi_dirty_memory_rate_bytes"
	MigrateVmiMemoryTransferRateMetricName = "kubevirt_migrate_vmi_memory_transfer_rate_bytes"
	MigrateVmiDiskTransferRateMetricName   = "kubevirt_migrate_vmi_disk_transfer_rate_bytes"
)

Variables

This section is empty.

Functions

func Handler

func Handler(MaxRequestsInFlight int) http.Handler

func NewPrometheusScraper added in v0.45.0

func NewPrometheusScraper(ch chan<- prometheus.Metric) *prometheusScraper

Types

type DomainStatsCollector

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

func SetupDomainStatsCollector

func SetupDomainStatsCollector(virtCli kubecli.KubevirtClient, virtShareDir, nodeName string, MaxRequestsInFlight int, vmiInformer cache.SharedIndexInformer) *DomainStatsCollector

aggregates to virt-launcher

func (*DomainStatsCollector) Collect

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

Note that Collect could be called concurrently

func (*DomainStatsCollector) Describe

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

Jump to

Keyboard shortcuts

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