api.routes.metrics ================== .. py:module:: api.routes.metrics .. autoapi-nested-parse:: Prometheus exposition of the last known run of each registered script. Computed fresh from Redis (``api/run_store.py``) on every scrape rather than accumulated in-process -- scripts actually run in the Celery worker/beat processes, not this one, so an in-process Counter/Gauge here would never see their updates. Public/unauthenticated like ``api/routes/health.py``, matching how Prometheus itself is configured to scrape it (no bearer token) -- see RewakeObserve's ``prometheus/prometheus.yml``. Attributes ---------- .. autoapisummary:: api.routes.metrics.logger api.routes.metrics.router Functions --------- .. autoapisummary:: api.routes.metrics.metrics Module Contents --------------- .. py:data:: logger .. py:data:: router .. py:function:: metrics() -> fastapi.Response :async: