Skip to content

feature: enhance observability with instance-level and routing-level metrics #474

Open

Description

@KevinCheung2259

Describe the feature

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:

  1. Reusing vLLM’s observability framework for instance-level metrics (e.g., per-instance latency, throughput), as it offers finer granularity and better usability.
  2. 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.
Image
Are there any other essential metrics I might have overlooked for effective monitoring? Please don't hesitate to provide input!
@YuhanLiu11 @ApostaC @Shaoting-Feng

Activity

  1. KevinCheung2259 commented on Jun 3, 2025

    @KevinCheung2259
    ContributorAuthor

    Maybe the metrics in lmcache are important too, such as cpu cache hit rate..

  2. YuhanLiu11 commented on Jun 3, 2025

    @YuhanLiu11
    Collaborator

    @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.

  3. ghpu commented on Aug 27, 2025

    @ghpu

    Just to add that having these metrics available in the router /metrics route could also help to drive autoscaling decisions.

  4. banlor commented on May 10, 2026

    @banlor
    Contributor

    @Shaoting-Feng Can i take this if no one's working on it?

  5. Shaoting-Feng commented on May 10, 2026

    @Shaoting-Feng
    Collaborator
  6. ruizhang0101 commented on May 11, 2026

    @ruizhang0101
    Collaborator

    @banlor Sure, I think no one is working on it! feel free to contribute! Thank you a lot for the engagement.

  7. enriqueav99 commented on Oct 22, 2026

    @enriqueav99

    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.

  8. banlor commented on Oct 23, 2026

    @banlor
    Contributor

    Where the asks in this issue stand on current main:

    Once #951 and #1170 are merged, I think this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions