From cebd4b96461bfe68cd64a05e1f09aabc3ec15efc Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Thu, 5 Feb 2026 16:53:07 -0800 Subject: [PATCH] docs(prometheus): add comment warning about check_db_only latency impact --- litellm/integrations/prometheus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/integrations/prometheus.py b/litellm/integrations/prometheus.py index 56a9a54d8e8..0a61dab0680 100644 --- a/litellm/integrations/prometheus.py +++ b/litellm/integrations/prometheus.py @@ -2905,6 +2905,8 @@ class PrometheusLogger(CustomLogger): max_budget=max_budget, ) try: + # Note: Setting check_db_only=True bypasses cache and hits DB on every request, + # causing huge latency increase and CPU spikes. Keep check_db_only=False. user_info = await get_user_object( user_id=user_id, prisma_client=prisma_client,