Task · MDE-0026

Document shared task-admission metrics in the generated reference

Description

scripts/generate_metrics_docs.py does not discover the Gauge/Histogram/Counter constructors nested inside the TaskAdmissionMetrics dataclass assembly in core/async_utils.py:43-74. As a result, docs/metrics/metrics.md omits meraki_exporter_tasks_pending, meraki_exporter_tasks_active, meraki_exporter_task_queue_wait_seconds, and meraki_exporter_task_expired_before_start_total even though they are production metrics and the collector_admission phase is operationally important. Extend the AST generator rather than hand-editing generated output, document the bounded phase labels, and regenerate the reference.

Acceptance Criteria

Definition of Done

Implementation Plan

Wave 1 L10: teach the metrics-doc generator to discover TaskAdmissionMetrics with phase documentation and focused coverage; root owns broad docgen and final gate.

Final Summary

Implemented and verified in 7327153. All four task-admission metrics and bounded phase meanings are generated; full gates passed.

View the source file on GitHub