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§
- Reconcile
Record - 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
ReconcileObserverwhen finished or dropped. - Step
Record - A finished (or abandoned)
Step, as reported toReconcileObserver::step_finished. - Trace
Metadata - Per-pass state handed to
Context::applyandContext::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§
- Reconcile
Observer - Receives reports of what reconciliation did.