-
Notifications
You must be signed in to change notification settings - Fork 178
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
Support model metrics for KServe (RHOAIENG-6560) (RHOAIENG-6561) #2913
Support model metrics for KServe (RHOAIENG-6560) (RHOAIENG-6561) #2913
Conversation
/retest-required |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2913 +/- ##
==========================================
+ Coverage 78.40% 78.49% +0.09%
==========================================
Files 1127 1139 +12
Lines 23988 24170 +182
Branches 6066 6088 +22
==========================================
+ Hits 18807 18973 +166
- Misses 5181 5197 +16
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
export const isKserveMetricsConfigMapKind = ( | ||
configMapKind: ConfigMapKind, | ||
): configMapKind is KserveMetricsConfigMapKind => | ||
(configMapKind as KserveMetricsConfigMapKind).data.supported === 'true' || | ||
(configMapKind as KserveMetricsConfigMapKind).data.supported === 'false'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure exactly what kind of values will be passed into this, but data
is possibly undefined
for a config map and there's no defensive checks here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the spot, this function is unfinished - I'll improve this and add a test for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can try to do this without using the keyword as
that would be good as we're attempting to remove the usage of casting. You can do checks like 'data' in configMapKind
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh didn't see the followup, I've removed the as
- is this up to standard now?
afcc422
to
e5ba97d
Compare
frontend/src/concepts/metrics/kserve/useKserveMetricsConfigMap.ts
Outdated
Show resolved
Hide resolved
3d27c60
to
ef9e30a
Compare
ef9e30a
to
b0dde63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled and tested locally. LGTM.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mturley The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes: RHOAIENG-6560 RHOAIENG-6561
Description
Implements metrics graphs for supported Kserve runtimes. Implements empty state for when a specific serving runtime is not supported.
Graphs and queries are now defined by a config map created by the KServe operator.
NOTE: There are some outstanding bugs in the backend:
How Has This Been Tested?
Environment setup:
model path is : kserve-samples/mnist/
(can keep the require service account box unchecked for easier curls..)
To perform requests against the model
curl --insecure {isvc_url}/v2/models/mnist/infer -d @./input-onnx.json
where,
isvc_url=$(oc get isvc -n <your_project> mnist -o jsonpath='{.status.url}')
and
you can find input-onnx.json here
Instructions:
mnist
sklearn-v2-iris metrics
Test Impact
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main