Skip to content

[Cleanup] Remove deprecated vllm:time_per_output_token_seconds metric#31675

Closed
majiayu000 wants to merge 1 commit intovllm-project:mainfrom
majiayu000:fix/remove-deprecated-time-per-output-token
Closed

[Cleanup] Remove deprecated vllm:time_per_output_token_seconds metric#31675
majiayu000 wants to merge 1 commit intovllm-project:mainfrom
majiayu000:fix/remove-deprecated-time-per-output-token

Conversation

@majiayu000
Copy link
Copy Markdown
Contributor

Summary

  • Remove the deprecated vllm:time_per_output_token_seconds Prometheus metric
  • This metric was deprecated in v0.11 and marked for removal in v0.13.0 (via TODO comment)
  • The replacement metric vllm:inter_token_latency_seconds is already available

Test plan

  • Verified ruff linting passes
  • CI tests should pass (metric no longer expected in tests)

This metric was deprecated in v0.11 (renamed to vllm:inter_token_latency_seconds)
and was marked for removal in v0.13.0 via the TODO comment. Since we are now at
v0.14.x, this commit removes the deprecated metric and related code.

Changes:
- Remove histogram_time_per_output_token from PrometheusStatLogger
- Remove related code in the record method
- Update test_metrics.py to remove references to the deprecated metric

Signed-off-by: majiayu000 <1835304752@qq.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the deprecated Prometheus metric vllm:time_per_output_token_seconds. The changes are well-contained and correctly remove the metric's definition, its usage in the code, and its presence in the test expectations. The code is cleaner as a result. The changes look good to me.

@ApostaC
Copy link
Copy Markdown
Collaborator

ApostaC commented Jan 6, 2026

@markmc Would you like to take a look at this PR regarding the Prometheus metrics? Thanks!

@markmc
Copy link
Copy Markdown
Member

markmc commented Jan 20, 2026

Thank you, #32661 duplicates this but looks more comprehensive (e.g. updates dashboards)

@markmc markmc closed this Jan 20, 2026
@markmc markmc moved this from Backlog to Not planned in Metrics & Tracing Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Not planned

Development

Successfully merging this pull request may close these issues.

3 participants