mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(fix) don't block proxy startup if license check fails & using prometheus (#6839)
* fix - don't block proxy startup if not a premium user * test_litellm_proxy_server_config_with_prometheus * add test for proxy startup * fix remove unused test * fix startup test * add comment on bad-license
This commit is contained in:
parent
cc1f8ff0ba
commit
ddfe687b13
4 changed files with 113 additions and 1 deletions
|
@ -242,7 +242,9 @@ def initialize_callbacks_on_proxy( # noqa: PLR0915
|
|||
|
||||
if "prometheus" in value:
|
||||
if premium_user is not True:
|
||||
raise Exception(CommonProxyErrors.not_premium_user.value)
|
||||
verbose_proxy_logger.warning(
|
||||
f"Prometheus metrics are only available for premium users. {CommonProxyErrors.not_premium_user.value}"
|
||||
)
|
||||
from litellm.proxy.proxy_server import app
|
||||
|
||||
verbose_proxy_logger.debug("Starting Prometheus Metrics on /metrics")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue