mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
(Prometheus) - emit key budget metrics on startup (#8002)
* add UI_SESSION_TOKEN_TEAM_ID * add type KeyListResponseObject * add _list_key_helper * _initialize_api_key_budget_metrics * key / budget metrics * init key budget metrics on startup * test_initialize_api_key_budget_metrics * fix linting * test_list_key_helper * test_initialize_remaining_budget_metrics_exception_handling
This commit is contained in:
parent
d9dcfccdf6
commit
669b4fc955
9 changed files with 555 additions and 102 deletions
|
@ -142,3 +142,5 @@ BATCH_STATUS_POLL_INTERVAL_SECONDS = 3600 # 1 hour
|
|||
BATCH_STATUS_POLL_MAX_ATTEMPTS = 24 # for 24 hours
|
||||
|
||||
HEALTH_CHECK_TIMEOUT_SECONDS = 60 # 60 seconds
|
||||
|
||||
UI_SESSION_TOKEN_TEAM_ID = "litellm-dashboard"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue