You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feature: enhance observability with instance-level and routing-level metrics #474
Currently, the observability in production-stack is limited, primarily offering coarse-grained cluster-level metrics. Compared to the existing metrics by vLLM's observability system, they lack instance-level metrics and don’t provide sufficient insights for routing decisions—especially as we scale to support more complex or user-defined routing algorithms (e.g., like those in AIBrix).
I propose:
Reusing vLLM’s observability framework for instance-level metrics (e.g., per-instance latency, throughput), as it offers finer granularity and better usability.
Adding routing-specific metrics, such as: per-instance QPS (critical for current routing), routing decision metadata (e.g., algorithm used, fallback triggers, retries) for future complex routing logic.
Why do you need this feature?
Instance-level: vLLM’s existing metrics are more detailed making them a better fit in production scenarios.
Routing-level: As routing grows more complex (e.g., dynamic load balancing, kvcache-aware routing), observability will be key to debugging and optimization. Without it, diagnosing issues like skewed load or suboptimal routing becomes opaque.
Additional context
This is a demo based on vLLM's observability framework, implementing a session-based router with integrated real-time QPS monitoring for each vLLM instance at the routing-level.
Are there any other essential metrics I might have overlooked for effective monitoring? Please don't hesitate to provide input! @YuhanLiu11@ApostaC@Shaoting-Feng
Reacted by cwwu, Yifan Cui, Yuhan Liu, Yann Defretin and Cosimo Iaia
@KevinCheung2259 This is super awesome! And yes, we should also add metrics from LMCache, such as LMCache local CPU memory usage, CPU cache hit rate etc.
Also cc @Shaoting-Feng on this since Shaoting is fixing the metrics in LMCache for vLLM v1.
I opened #1170 as a small step in this direction. The router already scrapes vllm:num_requests_waiting and vllm:kv_cache_usage_perc from each serving engine, but did not expose them from its own /metrics endpoint.
The PR exports both metrics with server and model_name labels. It is intentionally narrow: it does not try to proxy the full engine metric surface, but it makes the existing queue and KV-cache dashboard queries work when Prometheus scrapes the router.
Activity
KevinCheung2259 commentedon Jun 3, 2025
Maybe the metrics in lmcache are important too, such as cpu cache hit rate..
YuhanLiu11 commentedon Jun 3, 2025
@KevinCheung2259 This is super awesome! And yes, we should also add metrics from LMCache, such as LMCache local CPU memory usage, CPU cache hit rate etc.
Also cc @Shaoting-Feng on this since Shaoting is fixing the metrics in LMCache for vLLM v1.
ghpu commentedon Aug 27, 2025
Just to add that having these metrics available in the router /metrics route could also help to drive autoscaling decisions.
banlor commentedon May 10, 2026
@Shaoting-Feng Can i take this if no one's working on it?
Shaoting-Feng commentedon May 10, 2026
cc @ruizhang0101
ruizhang0101 commentedon May 11, 2026
@banlor Sure, I think no one is working on it! feel free to contribute! Thank you a lot for the engagement.
[Feat][Router] Add per-algorithm routing decisions counter (Refs vllm…
[Feat][Router] Add per-algorithm routing decisions counter (Refs vllm…
enriqueav99 commentedon Oct 22, 2026
I opened #1170 as a small step in this direction. The router already scrapes
vllm:num_requests_waitingandvllm:kv_cache_usage_percfrom each serving engine, but did not expose them from its own/metricsendpoint.The PR exports both metrics with
serverandmodel_namelabels. It is intentionally narrow: it does not try to proxy the full engine metric surface, but it makes the existing queue and KV-cache dashboard queries work when Prometheus scrapes the router.banlor commentedon Oct 23, 2026
Where the asks in this issue stand on current main:
vllm:current_qps{server}on the router's/metrics./metrics: [Bugfix][Router] Export waiting requests and KV cache usage from /metrics #1170.Once #951 and #1170 are merged, I think this issue can be closed.