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

Prometheus metrics refactor - prevent incorrect label error from happening #8233

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Feb 4, 2025

Title

This PR aims to solve the reoccurring metrics mismatch issue, by moving all metric calls to a common function

Relevant issues

Fixes reocurring label mismatch issues

Type

🧹 Refactoring

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locally

If UI changes, send a screenshot/GIF of working UI fixes

…theus logger

use a separate prometheus metric manager for this
move to a metric manager to reduce scope for bugs
…er for setting label values

reduces risk of hitting 'value mismatch' error
Copy link

vercel bot commented Feb 4, 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 Feb 4, 2025 4:30am

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