diff --git a/src/telemetry/prometheus/metrics.py b/src/telemetry/prometheus/metrics.py index c70d8098..c8394228 100644 --- a/src/telemetry/prometheus/metrics.py +++ b/src/telemetry/prometheus/metrics.py @@ -562,7 +562,7 @@ class PrometheusMetrics: # ai: embed_now fast path runs as an API-process background task self._touch(embed_now_tasks_shed_counter) self.set_embed_now_tasks_in_flight(0) - # ai: the deriver-work gauges are API-only; the deriver never sets them + self.set_deriver_metrics() self.set_deriver_outstanding_work(seconds=0) self.set_dreams_due(count=0) diff --git a/tests/telemetry/test_metric_zero_init.py b/tests/telemetry/test_metric_zero_init.py index 3fa0e318..69b8f7ec 100644 --- a/tests/telemetry/test_metric_zero_init.py +++ b/tests/telemetry/test_metric_zero_init.py @@ -131,7 +131,6 @@ def test_deriver_token_combos_are_valid_and_complete(): ) not in ingestion -# ai: API-only; a deriver-exported 0 would read as "no work" on a series it never measures. message_embeddings_pending is absent because both processes report it _API_DERIVER_METRIC_GAUGES = ( "deriver_outstanding_work_seconds", "deriver_queue_work_units_eligible",