vllm-project / vllm-project/production-stack

Feature Request: Add Prometheus Metrics for Monitoring Models via vLLM Router

Open
#699 7 comments 20 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Python
Stars
2.6k
Forks
503
Avg merge
4d 17h
Merged PRs (30d)
8

Description

Describe the feature

Description

It would be great to have built-in support to monitor all models running under the vLLM router through the router itself, exposing relevant metrics in Prometheus format. This would allow users to track usage, performance, and health of each model centrally without needing to access each model instance directly.

Motivation

  • Centralized monitoring simplifies observability across multiple models.
  • Easier integration with existing Prometheus + Grafana monitoring stacks.
  • Enables tracking of metrics such as request rates, latency, error rates, token usage, and resource usage per model through the router layer.

Proposed Solution

  • Extend the vLLM router to collect and expose Prometheus metrics for every model it routes requests to.
  • Suggested metrics include:
    • Number of requests per model
    • Latency (request processing time) per model
    • Error counts per model
    • Number of tokens processed per model (input and output tokens)
    • Resource usage or load indicators (if feasible)
  • Expose an HTTP endpoint (e.g., /metrics) on the router for Prometheus scraping.

Additional Context

This feature would improve operational visibility when running multiple models behind a vLLM router, and aligns well with common best practices for observability in microservice architectures.

Why do you need this feature?

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the vLLM router entry point and its model-routing request paths, then check whether an existing metrics endpoint or Prometheus integration is present. Define the metric labels and collection points for per-model requests, latency, errors, tokens, and resource indicators before implementing the /metrics endpoint. Done means the router exposes documented Prometheus metrics that cover the agreed model-level signals.

Written by the indexing model from the issue text.

Assessment

Tech stack
prometheus, python
Domain
backend, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.