Skip to main content

Module observe

Module observe 

Source
Expand description

Observing what reconciliation does, for metrics.

A Controller given a ReconcileObserver via with_observer reports every reconciliation pass to it as a ReconcileRecord. Within a pass, reconcilers can additionally divide their work into named Steps, started with TraceMetadata::step, each reported as a StepRecord. Steps are what attribute a slow or failing pass to the part of the reconciler responsible, and are the only way to report that a part of it was skipped.

With the prometheus feature enabled, PrometheusMetrics implements ReconcileObserver by exporting Prometheus metrics. Implement the trait directly to export to another metrics system.

Structs§

ReconcileRecord
A completed (or abandoned) reconciliation pass, as reported to ReconcileObserver::reconciled.
Step
Times one named step of a reconciliation pass, reporting it to the controller’s ReconcileObserver when finished or dropped.
StepRecord
A finished (or abandoned) Step, as reported to ReconcileObserver::step_finished.
TraceMetadata
Per-pass state handed to Context::apply and Context::cleanup.

Enums§

Outcome
What a reconciliation pass, or a step of one, concluded.
Phase
Which part of the resource’s lifecycle a reconciliation pass handled.

Traits§

ReconcileObserver
Receives reports of what reconciliation did.