Skip to content

docs(prometheus): clarify what each request-latency metric measures - #991

Merged
yassin-berriai merged 2 commits into
mainfrom
litellm_prometheus_latency_metric_docs
Aug 22, 2026
Merged

docs(prometheus): clarify what each request-latency metric measures#991
yassin-berriai merged 2 commits into
mainfrom
litellm_prometheus_latency_metric_docs

Conversation

@yassin-berriai

@yassin-berriai yassin-berriai commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

The Request Latency Metrics section of the Prometheus docs packed each metric's description and full label list into one dense table cell, and described litellm_request_total_latency_metric as "total latency... for a request" without noting that it previously excluded authentication time.

Rewrites the section around the user's task: choose the right metric, understand its exact measurement window, and query end-to-end p95 latency. The main content is now one comparison table, while the long label inventory is available in an expandable reference. Wording matches the corrected metric behavior landed in BerriAI/litellm#37958.

Linear ticket

Resolves LIT-6013

Test plan

  • node scripts/check-writing-style.js docs/proxy/prometheus.md: clean, no em dashes
  • npm run build: succeeds; the 11 pre-existing SSG warnings are all on unrelated pages (contact, knowledgebase, mcp, configs, email, logging, google_adk, several release notes), none on this page
  • Rendered /docs/proxy/prometheus#request-latency-metrics locally and verified the comparison table, PromQL example, and expanded label reference

The Request Latency Metrics table jammed each metric's description and
full label list into one dense run-on cell, and described
litellm_request_total_latency_metric as "total latency... for a request"
without saying it previously excluded authentication time (see the
companion litellm fix). Rewritten with a request-lifecycle timeline, a
"which metric should I alert on" guide, and label lists split out from
descriptions.
@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Ready Ready Preview Aug 22, 2026 8:54pm

Request Review

@yassin-berriai
yassin-berriai merged commit 51d3973 into main Aug 22, 2026
3 checks passed
@yassin-berriai
yassin-berriai deleted the litellm_prometheus_latency_metric_docs branch August 22, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants