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)
}
Click to show internal directories.
Click to hide internal directories.