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
show correct metric
Ishaan Jaffd630f77b7366
diff --git a/litellm/integrations/prometheus.py b/litellm/integrations/prometheus.pyindex 8ee726196ba..3141f36fb02 100644--- a/litellm/integrations/prometheus.py+++ b/litellm/integrations/prometheus.py@@ -318,11 +318,11 @@ class PrometheusLogger(CustomLogger):remaining_tokens = _metadata.get(remaining_tokens_variable_name, sys.maxsize)self.litellm_remaining_api_key_requests_for_model.labels(- user_api_key, user_api_key_alias, model+ user_api_key, user_api_key_alias, model_group).set(remaining_requests)self.litellm_remaining_api_key_tokens_for_model.labels(- user_api_key, user_api_key_alias, model+ user_api_key, user_api_key_alias, model_group).set(remaining_tokens)# set x-ratelimit headers