litellm - 💡(How to fix) Fix [Bug]: /metrics endpoint not allowing for unauthenticated access

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…

Error Message

After the update, the endpoint returns an unauthorized error, since I'm not using an API key to authenticate for these requests.

Fix Action

Fix / Workaround

  1. Upgrade to 1.84.0
  2. Lose metrics
RAW_BUFFERClick to expand / collapse

Check for existing issues

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

What happened?

I have a liteLLM install that was recently upgraded to 1.84.0. I'm using the prometheus metrics with liteLLM sitting behind a reverse proxy to secure the metrics endpoint.

After the update, the endpoint returns an unauthorized error, since I'm not using an API key to authenticate for these requests.

The information I've found online says I should be able to use the require_auth_for_metrics_endpoint option, but it does not work as expected (LiteLLM still needs a key for authorization).

  1. Is there any way to restore access to the metrics?
  2. Is there any way to be notified of breaking changes before I upgrade? I've had similar things happen a few times before, and it's not optimal.

Steps to Reproduce

  1. Upgrade to 1.84.0
  2. Lose metrics

Relevant log output

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

1.84.0

Twitter / LinkedIn details

No response

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

litellm - 💡(How to fix) Fix [Bug]: /metrics endpoint not allowing for unauthenticated access