Skip to content

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]

[Fix] Tests: Restore /metrics access for prometheus test suite

Yuneng Jiang0976fbc6c408
diff --git a/.circleci/config.yml b/.circleci/config.yml
index a883c07021f..b91143f06fe 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1475,7 +1475,7 @@ jobs:
- run:
name: Run tests
command: |
- uv run --no-sync python -m pytest -v tests/otel_tests -x --junitxml=test-results/junit.xml --durations=5
+ uv run --no-sync python -m pytest -v tests/otel_tests --junitxml=test-results/junit.xml --durations=5
no_output_timeout: 15m
# Clean up first container
- run:
diff --git a/litellm/proxy/example_config_yaml/otel_test_config.yaml b/litellm/proxy/example_config_yaml/otel_test_config.yaml
index fc506a792eb..dc612865732 100644
--- a/litellm/proxy/example_config_yaml/otel_test_config.yaml
+++ b/litellm/proxy/example_config_yaml/otel_test_config.yaml
@@ -46,6 +46,9 @@ litellm_settings:
cache: true
callbacks: ["otel", "prometheus"]
disable_end_user_cost_tracking_prometheus_only: True
+ # /metrics auth is on by default; tests/otel_tests/test_prometheus.py
+ # scrapes the endpoint without credentials, so opt out here.
+ require_auth_for_metrics_endpoint: False
guardrails:
- guardrail_name: "bedrock-pre-guard"