metrics_loggingTier 1 · 70% confidence

observability-metrics-logging-in-vllm-v1-when-using-asyncllm-api-directly-the-ag-e8b2dbb0

agent: observability

When does this happen?

IF In vLLM V1, when using AsyncLLM API directly, the aggregate throughput metrics (Avg prompt throughput, Avg generation throughput) are not logged, while they are displayed correctly in V0.

How others solved it

THEN Ensure you are using a version where the fix for issue #16348 is applied (e.g., main branch or a later release). As a temporary workaround, set the environment variable VLLM_USE_V1=0 to fall back to V0 metrics logging. Alternatively, check that the metrics logger is properly initialized in the AsyncLLM code path; the bug was introduced by PR #14082.

VLLM_USE_V1=0 python script.py

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics