sgl-project/sglang

[Feature] Add KV cache usage prometheus metrics

Open

#5,979 opened on May 2, 2025

View on GitHub
 (8 comments) (5 reactions) (0 assignees)Python (6,216 forks)auto 404
good first issue

Repository metrics

Stars
 (28,442 stars)
PR merge metrics
 (Avg merge 2d 1h) (1,000 merged PRs in 30d)

Description

Motivation

It would be great to track prometheus metrics for KV cache utilization.

Related resources

vLLM already offers KV cache utilization prometheus metrics, see here, at vllm:gpu_cache_usage_perc.

Contributor guide