The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
feat add cron job for sending stats from prometheus
Ishaan Jaffaef13a37f498
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex 419ac8f7d20..527fe03cf86 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -2795,6 +2795,19 @@ async def startup_event():day=1,)+ # Beta Feature - only used when prometheus api is in .env+ if os.getenv("PROMETHEUS_URL"):+ from zoneinfo import ZoneInfo++ scheduler.add_job(+ proxy_logging_obj.slack_alerting_instance.send_fallback_stats_from_prometheus,+ "cron",+ hour=9,+ minute=0,+ timezone=ZoneInfo("America/Los_Angeles"), # Pacific Time+ )+ await proxy_logging_obj.slack_alerting_instance.send_fallback_stats_from_prometheus()+scheduler.start()