-
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
Implemented visualizations for the NIM metrics #3612
Implemented visualizations for the NIM metrics #3612
Conversation
Hi @LinoyBitan1. Thanks for your PR. I'm waiting for a opendatahub-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
FYI @emilys314 |
This is our (Matan Talvi and Linoy Bitan) first PR. |
/ok-to-test |
Can you run the linter / formatter? The CI checks will not pass unless it's following the linting rules See https://github.com/opendatahub-io/odh-dashboard/blob/main/CONTRIBUTING.md#linter-testing |
Can you also add in the PR description the jira item this is associated with? |
done |
The linter and formatter were run, and we've added the updates in the commit along with a few changes in the tests. Let us know if there's anything else needed! |
...src/pages/projects/screens/detail/overview/serverModels/deployedModels/DeployedModelCard.tsx
Outdated
Show resolved
Hide resolved
522c605
to
eebe460
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.
frontend/src/pages/modelServing/screens/metrics/nim/ModelGraphs.tsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/modelServing/screens/metrics/useMetricsPageEnabledTabs.ts
Show resolved
Hide resolved
frontend/src/pages/modelServing/screens/metrics/MetricsChart.tsx
Outdated
Show resolved
Hide resolved
It appears there is another linter error https://github.com/opendatahub-io/odh-dashboard/actions/runs/12769888698/job/35594011880?pr=3612 |
d36865b
to
859f097
Compare
frontend/src/pages/modelServing/screens/metrics/MetricsPageTabs.tsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/modelServing/screens/metrics/MetricsPageTabs.tsx
Outdated
Show resolved
Hide resolved
050e6c9
to
d76e983
Compare
Signed-off-by: LinoyBitan1 <lbitan@redhat.com>
Signed-off-by: LinoyBitan1 <lbitan@redhat.com>
d76e983
to
bf2f0fd
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.
very minor comments (sorry lol), but everything else looks good and is working as intended
frontend/src/pages/modelServing/screens/metrics/MetricsPageTabs.tsx
Outdated
Show resolved
Hide resolved
frontend/src/__tests__/cypress/cypress/tests/mocked/modelServing/modelMetrics.cy.ts
Outdated
Show resolved
Hide resolved
…e initIntercepts Signed-off-by: Olga Lavtar <olavtar@redhat.com>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: emilys314 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 |
b263b57
into
opendatahub-io:main
Description
JIRA - https://issues.redhat.com/browse/NVPE-31
Implemented visualizations for the NIM metrics. the graphs added to Nim tab-
1 - Graph for KV Cache usage over time
2 - Line graph for Running, Waiting and Max Request Count
3 - Line graph with Total Prompt Token Count and Total Generation Token Count
4 - Area chart with Time to First Token
5 - Area chart with Time per Output Token
6 - Donut chart with Success Request and Failed Requests
odh-model-controller creates a ConfigMap next to the InferenceService called -metrics-dashboard with a data indicating if metrics are available for the runtime and if so, the ConfigMap will also contain a JSON object specifying the queries required for the graphs mentioned above.
odh-dashboard grabs the above-mentioned ConfigMap based on its name, and if metrics are available for the runtime, it will parse the JSON object and create the required graphs.
NIM Metrics tab-
NIM Metrics graphs-
How Has This Been Tested?
Use the following doc -
NIM Metrics_ frontend.pdf
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