vms

package
v0.48.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CollectionTimeout = 10 * time.Second // "long enough", crude heuristic
View Source
const StatsMaxAge = CollectionTimeout + 2*time.Second // "a bit more" than timeout, heuristic again

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	Scrape(key string, vmi *k6tv1.VirtualMachineInstance)
	Collect(vmis []*k6tv1.VirtualMachineInstance, scraper MetricsScraper, timeout time.Duration) (skipped []string, completed bool)
}

type ConcurrentCollector

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

func NewConcurrentCollector

func NewConcurrentCollector(MaxRequestsPerKey int) *ConcurrentCollector

func (*ConcurrentCollector) Collect

func (cc *ConcurrentCollector) Collect(vmis []*k6tv1.VirtualMachineInstance, scraper MetricsScraper, timeout time.Duration) ([]string, bool)

type MetricsScraper

type MetricsScraper interface {
	Scrape(key string, vmi *k6tv1.VirtualMachineInstance)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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