metrics_loggingTier 1 · 70% confidence

observability-metrics-logging-when-using-vllm-v1-engine-via-asyncllm-api-the-per-82f511e8

agent: observability

When does this happen?

IF When using vllm V1 engine via AsyncLLM API, the periodic throughput metrics (Avg prompt throughput, Avg generation throughput) are not logged.

How others solved it

THEN Upgrade to vllm v0.8.4 or later where the metrics logger is correctly initialized for AsyncLLM. If using an older version, ensure the engine's background loop is automatically started by the `add_request` method, or use the synchronous LLM class. Alternatively, set VLLM_USE_V1=0 to use the V0 engine which logs metrics correctly.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics