Task · TSO-0009

Add a bounded Prometheus first-scrape check

Description

The CLI can validate configuration and run an authenticated collection preflight, but it cannot prove that a Prometheus operator will get a usable scrape without starting the long-running service.

Acceptance Criteria

Definition of Done

Implementation Plan

Add -prometheus-check on the frozen RunPrometheusOnce seam; classify configuration, authentication, collection, gather and access-posture failures in human and JSON output; prove bounded side-effect-free behavior.

Implementation Notes

Implemented and locally validated in bundled pause snapshot 2cf46446d5c6a7a30ea6f7d0c54d61ec9889d522, including zero-annotation and zero-OTLP side-effect tests. Resume with final security review, exact-head CI, and a live bounded check.

Final evidence: SECURITY CLEAN; integrated GATE passed; exact-head CI run 33047209645 succeeded. The deployed registry exposed the documented build-info sentinel as valid Prometheus exposition, and the Fleet scrape produced an up series in the backend.

Final Summary

The bounded classified Prometheus first-scrape check is committed in 2cf46446d5c6a7a30ea6f7d0c54d61ec9889d522; parked pending final security, CI, and live proof.

Completion: verified by side-effect tests, security review, exact-head CI, and live sentinel exposition.

References

View the source file on GitHub