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 ¶
func (w *WebsiteTracker) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
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.
Click to show internal directories.
Click to hide internal directories.