-
Notifications
You must be signed in to change notification settings - Fork 174
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 multi models metric result in PromQL #458
Conversation
@@ -103,7 +103,7 @@ jobs: | |||
|
|||
- name: Deploy Workload | |||
run: | | |||
cd docs/development/app |
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.
"instance": fmt.Sprintf("%s:%d", pod.Status.PodIP, podPort), | ||
} | ||
metric, ok := metrics.Metrics[metricName] | ||
modelNames, ok := c.PodToModelMapping[pod.Name] |
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.
Technically, this might not be populated if pod just arrive. but I think this is ok, we may miss few metrics until the pod is added into the map.
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.
/lgtm
* fix: do promQL for multi models in one pod * fix startup yaml and mock app * fix: fix mock app dir in ci
Pull Request Description
Fix multi models metric result in PromQL. Traverse
PodToModelMapping
to obtain allmodelNames
on the podRelated Issues
Resolves: #423
Important: Before submitting, please complete the description above and review the checklist below.
Contribution Guidelines (Expand for Details)
We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:
Pull Request Title Format
Your PR title should start with one of these prefixes to indicate the nature of the change:
[Bug]
: Corrections to existing functionality[CI]
: Changes to build process or CI pipeline[Docs]
: Updates or additions to documentation[API]
: Modifications to aibrix's API or interface[CLI]
: Changes or additions to the Command Line Interface[Misc]
: For changes not covered above (use sparingly)Note: For changes spanning multiple categories, use multiple prefixes in order of importance.
Submission Checklist
By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.