tracker

package
v0.0.0-...-e617ea9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebsiteTracker

type WebsiteTracker struct {
	// RunID is added as the run_id label to metrics.
	RunID string
	// contains filtered or unexported fields
}

WebsiteTracker tracks how long it takes for generations of Website objects to be reconciled and get ready.

func (*WebsiteTracker) AddToManager

func (w *WebsiteTracker) AddToManager(mgr manager.Manager) error

AddToManager initializes the tracker, registers its metrics, and starts watching objects.

func (*WebsiteTracker) Reconcile

Reconcile iterates over all objects and records metrics for the generations that were observed to be ready.

func (*WebsiteTracker) RecordSpecChange

func (w *WebsiteTracker) RecordSpecChange(website *webhostingv1alpha1.Website)

RecordSpecChange records a new generation of the given website as created or updated by the experiment. Supposed to be called by the load generator.

Jump to

Keyboard shortcuts

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