Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Custom Metrics on Prometheus - allow setting k,v pairs on all metrics via config.yaml #7498

Merged
merged 7 commits into from
Jan 2, 2025

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Jan 1, 2025

  • refactor(prometheus.py): refactor to remove _tag metrics and incorporate in regular metrics

  • fix(prometheus.py): handle label values not set in enum values

  • feat(prometheus.py): working e2e custom metadata labels

  • docs(prometheus.md): update docs to clarify how custom metrics would work

Copy link

vercel bot commented Jan 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2025 3:00am

@krrishdholakia krrishdholakia merged commit 07fc394 into main Jan 2, 2025
3 of 21 checks passed
@krrishdholakia krrishdholakia changed the title Litellm dev 01 01 2025 p1 Refactor Custom Metrics on Prometheus - allow setting k,v pairs on all metrics via config.yaml Jan 2, 2025
rajatvig pushed a commit to rajatvig/litellm that referenced this pull request Jan 16, 2025
* refactor(prometheus.py): refactor to remove `_tag` metrics and incorporate in regular metrics

* fix(prometheus.py): handle label values not set in enum values

* feat(prometheus.py): working e2e custom metadata labels

* docs(prometheus.md): update docs to clarify how custom metrics would work

* test(test_prometheus_unit_tests.py): fix test

* test: add unit testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant