litellm/tests/otel_tests
Sameer Kankute 73e32a31bf
feat(prometheus): add user_email and user_alias to user budget metrics (#28155)
* feat(prometheus): add user_email and user_alias to user budget metrics

User budget Prometheus gauges now expose human-readable labels alongside
user_id, matching team and API key budget metrics for Grafana filtering.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(prometheus): gate user budget email/alias labels behind opt-in flag

Address greptile review: adding labels to existing metrics is a
breaking cardinality change. Gate behind
prometheus_user_budget_label_include_email_alias=True (default: False)
so existing dashboards and recording rules are unaffected.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 16:28:14 -07:00
..
test_e2e_budgeting.py Fix proxy auth status code tests (#27555) 2026-05-09 14:47:48 -07:00
test_e2e_model_access.py chore(ci): modernize model references in tests and configs (#27856) 2026-05-15 15:44:28 -07:00
test_guardrails.py chore(ci): modernize model references in tests and configs (#27856) 2026-05-15 15:44:28 -07:00
test_key_logging_callbacks.py [Fix] Proxy: Break managed-resources import cycle on Python 3.13 2026-05-04 20:05:24 -07:00
test_model_info.py [Feat] Allow setting supports_vision for Custom OpenAI endpoints + Added testing (#5821) 2024-09-21 11:35:55 -07:00
test_moderations.py test_basic_moderations_on_proxy_with_model 2025-10-27 13:49:47 -07:00
test_otel.py chore(ci): modernize model references in tests and configs (#27856) 2026-05-15 15:44:28 -07:00
test_prometheus.py feat(prometheus): add user_email and user_alias to user budget metrics (#28155) 2026-05-18 16:28:14 -07:00
test_rerank.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
test_team_member_permissions.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_team_tag_routing.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00