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:
Krrish Dholakia 2024-05-06 17:18:42 -07:00
parent 6c03c5f201
commit 0c1fc34e9f
7 changed files with 400 additions and 25 deletions

View file

@ -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,