mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
feat(slack_alerting.py): support sending daily reports on deployments
allow admin to easily know slow + failing deployments Closes https://github.com/BerriAI/litellm/issues/3483
This commit is contained in:
parent
6c03c5f201
commit
0c1fc34e9f
7 changed files with 400 additions and 25 deletions
|
@ -73,6 +73,7 @@ class ProxyLogging:
|
|||
"llm_requests_hanging",
|
||||
"budget_alerts",
|
||||
"db_exceptions",
|
||||
"daily_reports",
|
||||
]
|
||||
] = [
|
||||
"llm_exceptions",
|
||||
|
@ -80,11 +81,13 @@ class ProxyLogging:
|
|||
"llm_requests_hanging",
|
||||
"budget_alerts",
|
||||
"db_exceptions",
|
||||
"daily_reports",
|
||||
]
|
||||
self.slack_alerting_instance = SlackAlerting(
|
||||
alerting_threshold=self.alerting_threshold,
|
||||
alerting=self.alerting,
|
||||
alert_types=self.alert_types,
|
||||
internal_usage_cache=self.internal_usage_cache,
|
||||
)
|
||||
|
||||
def update_values(
|
||||
|
@ -100,6 +103,7 @@ class ProxyLogging:
|
|||
"llm_requests_hanging",
|
||||
"budget_alerts",
|
||||
"db_exceptions",
|
||||
"daily_reports",
|
||||
]
|
||||
]
|
||||
] = None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue