api.routes.metrics¶
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¶
Functions¶
|
Module Contents¶
- api.routes.metrics.logger¶
- api.routes.metrics.router¶
- async api.routes.metrics.metrics() fastapi.Response¶