mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
Merge branch 'BerriAI:main' into docs/elasticsearch-logging-tutorial
This commit is contained in:
commit
a7e2f68255
1 changed files with 3 additions and 3 deletions
|
|
@ -41,6 +41,9 @@ class PrometheusLogger(CustomLogger):
|
|||
|
||||
from litellm.proxy.proxy_server import CommonProxyErrors, premium_user
|
||||
|
||||
# Always initialize label_filters, even for non-premium users
|
||||
self.label_filters = self._parse_prometheus_config()
|
||||
|
||||
if premium_user is not True:
|
||||
verbose_logger.warning(
|
||||
f"🚨🚨🚨 Prometheus Metrics is on LiteLLM Enterprise\n🚨 {CommonProxyErrors.not_premium_user.value}"
|
||||
|
|
@ -51,9 +54,6 @@ class PrometheusLogger(CustomLogger):
|
|||
)
|
||||
return
|
||||
|
||||
# Parse prometheus metrics configuration for label filtering
|
||||
self.label_filters = self._parse_prometheus_config()
|
||||
|
||||
# Create metric factory functions
|
||||
self._counter_factory = self._create_metric_factory(Counter)
|
||||
self._gauge_factory = self._create_metric_factory(Gauge)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue