litellm - 💡(How to fix) Fix [Feature]: Expose router cooldown state via API endpoint for observability [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#25504Fetched 2026-04-11 06:13:47
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

The Feature

When the LiteLLM router places a deployment in cooldown after repeated failures, that state is internal and not exposed via any API. Operators have no way to query which deployments are currently in cooldown, why they were cooled down, or when they will recover without reading application logs.

Proposal: add a /router/cooldowns endpoint (or extend /health) to surface current cooldown state per deployment:

  • model_name, deployment_id, cooled_down_at, cooldown_expires_at, reason (e.g. RateLimitError), failure_count

Motivation, pitch

Cooldown is a core reliability mechanism, but without visibility:

  1. Silent capacity reduction: when a deployment is cooled down, all traffic shifts to remaining deployments. Operators see latency increase but cannot tell why without grepping logs.
  2. Debugging fallback chains is hard: there is no audit trail of which deployments were cooled down when a request fell back.
  3. Alerting is impossible: monitoring cannot alert on "deployment X in cooldown > 10 minutes" without a queryable API.

The /health endpoint does live probes. A /router/cooldowns endpoint would complement it by showing current internal router state without triggering new requests. Related to #25457.

What part of LiteLLM is this about?

Proxy / Router

LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?

No

Twitter / LinkedIn details

No response

extent analysis

TL;DR

Add a /router/cooldowns endpoint to expose current cooldown state per deployment, allowing operators to query and monitor cooldowns.

Guidance

  • Implement a new API endpoint (/router/cooldowns) to return the cooldown state for each deployment, including model_name, deployment_id, cooled_down_at, cooldown_expires_at, reason, and failure_count.
  • Consider extending the existing /health endpoint to include cooldown information, if feasible.
  • Ensure the new endpoint provides a queryable interface for operators to monitor and alert on cooldowns.
  • Document the new endpoint and its usage to facilitate adoption and integration with monitoring tools.

Example

No code snippet is provided, as the issue does not contain specific implementation details.

Notes

The proposed solution assumes that the internal cooldown state is already being tracked by the LiteLLM router. If this is not the case, additional work may be required to implement cooldown state tracking before exposing it via an API.

Recommendation

Apply workaround: Implement the proposed /router/cooldowns endpoint to provide visibility into cooldown states, as this will address the immediate need for operators to monitor and debug cooldowns.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING