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

fix(metrics): Fix model label metric in case of experiment #6118

Merged

Conversation

sakoush
Copy link
Member

@sakoush sakoush commented Nov 28, 2024

What this PR does / why we need it:

This PR adjusts the metrics label value for model to be the actual model name as opposed to the header being passed in the request. Previously using the header in the request means that for experiment, where the seldon-model header has a suffix .experiment, can result in ambiguity on which actual model is being actually used.

The change in this PR is to use seldon-model-internal to extract the original model and use it for the model label.

Which issue(s) this PR fixes:

Fixes INFRA-1278 (internal)

Special notes for your reviewer:

@sakoush sakoush requested a review from lc525 as a code owner November 28, 2024 10:40
@sakoush sakoush added the v2 label Nov 28, 2024
@sakoush sakoush requested review from driev and removed request for lc525 November 28, 2024 10:41
@sakoush sakoush merged commit bde212b into SeldonIO:v2 Nov 28, 2024
3 checks passed
sakoush added a commit that referenced this pull request Dec 2, 2024
* use internal model header to compute model label

* add test for rest

* add test for grpc rproxy

* adjust log message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants