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

[Model Monitoring] Avoid failing on missing predictions TSDB table #5706

Merged
merged 6 commits into from
Jun 5, 2024

Conversation

gtopper
Copy link
Collaborator

@gtopper gtopper commented Jun 4, 2024

ML-6628

Return an empty dataframe instead.

Fixes system test: TestRecordResults::test_inference_feature_set

@gtopper gtopper requested a review from jond01 June 4, 2024 07:03
tests/system/model_monitoring/test_app.py Outdated Show resolved Hide resolved
)
except v3io_frames.ReadError as err:
if "No TSDB schema file found" in str(err):
return pd.DataFrame()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the /metrics output on a new model endpoint?
If I follow correctly, it will always show the "invocations" metric, which is incorrect.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will return an empty dataframe, and hence the expected ModelEndpointMonitoringMetricNoData.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I refer to the read_prediction_metric_for_endpoint_if_exists method, which is used in the /metrics endpoint.
What is the /metrics (not /metrics-values) output in the mentioned case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, that's an issue in development. I pushed a 1-liner commit to fix that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the /metrics (not /metrics-values) output in the mentioned case?

👆

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This question remains unanswered - it was the primary motivation for this fix.
It should be ok now. Addressing it could reduce the review time for both sides.

@gtopper gtopper requested a review from jond01 June 4, 2024 08:05
@gtopper gtopper requested a review from jond01 June 5, 2024 08:28
@gtopper gtopper merged commit 8ab508a into mlrun:development Jun 5, 2024
11 checks passed
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.

None yet

2 participants