Skip to content

docs(prometheus): document the service_tier label on latency and spend metrics - #694

Merged
yassin-berriai merged 1 commit into
mainfrom
litellm_prometheus_service_tier_label_docs
Jul 28, 2026
Merged

docs(prometheus): document the service_tier label on latency and spend metrics#694
yassin-berriai merged 1 commit into
mainfrom
litellm_prometheus_service_tier_label_docs

Conversation

@yassin-berriai

Copy link
Copy Markdown
Contributor

Documents the service_tier label that BerriAI/litellm#34966 adds to litellm_request_total_latency_metric, litellm_llm_api_latency_metric, litellm_llm_api_time_to_first_token_metric and litellm_spend_metric, so latency and cost can be segmented by the tier a request ran on

Adds the label to those four metrics' label lists and a short section with the PromQL for splitting p95 latency by tier, including how a request sent with "service_tier": "auto" is labelled with the concrete tier the provider picked

Merge order: this can merge before or after the code PR; neither gates the other's CI

@vercel

vercel Bot commented Jul 28, 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, Comment Jul 28, 2026 5:35pm

Request Review

@yassin-berriai
yassin-berriai merged commit a5ec51c into main Jul 28, 2026
3 checks passed
@yassin-berriai
yassin-berriai deleted the litellm_prometheus_service_tier_label_docs branch July 28, 2026 22:50
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.

1 participant