-
Notifications
You must be signed in to change notification settings - Fork 58
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
Integrate MetadataProfile with CreateExperiment API #1496
base: mvp_demo
Are you sure you want to change the base?
Integrate MetadataProfile with CreateExperiment API #1496
Conversation
@@ -36,6 +36,8 @@ public class CreateExperimentAPIObject extends BaseSO implements ExperimentTypeA | |||
private String clusterName; | |||
@SerializedName(KruizeConstants.JSONKeys.PERFORMANCE_PROFILE) | |||
private String performanceProfile; | |||
@SerializedName(KruizeConstants.JSONKeys.METADATA_PROFILE) |
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.
Please update the design docs as well
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.
PR 1543 has both documentation and test related changes
src/main/java/com/autotune/analyzer/serviceObjects/CreateExperimentAPIObject.java
Outdated
Show resolved
Hide resolved
@@ -487,6 +505,44 @@ public static String setDefaultMetricProfile(SloInfo sloInfo, String mode, Strin | |||
return metricProfile.getName(); | |||
} | |||
|
|||
|
|||
public static String setDefaultMetadataProfile() { |
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.
Is this function still relevant as we are setting up default profiles through jsons in the other PR?
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.
Need to verify this as the default profiles through jsons are set up only for ROS and not for local monitoring.
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.
I have removed setDefaultMetadataProfile()
as this is not required/relevant for local monitoring
2847bb8
to
c832ff0
Compare
src/main/java/com/autotune/analyzer/experiment/ExperimentValidation.java
Outdated
Show resolved
Hide resolved
src/main/java/com/autotune/analyzer/experiment/ExperimentValidation.java
Outdated
Show resolved
Hide resolved
src/main/java/com/autotune/analyzer/experiment/ExperimentValidation.java
Outdated
Show resolved
Hide resolved
src/main/java/com/autotune/analyzer/metadataProfiles/MetadataProfileDeployment.java
Outdated
Show resolved
Hide resolved
src/main/java/com/autotune/analyzer/metadataProfiles/MetadataProfileDeployment.java
Show resolved
Hide resolved
src/main/java/com/autotune/analyzer/metadataProfiles/MetadataProfileDeployment.java
Outdated
Show resolved
Hide resolved
src/main/java/com/autotune/analyzer/metadataProfiles/MetadataProfileDeployment.java
Outdated
Show resolved
Hide resolved
src/main/java/com/autotune/analyzer/serviceObjects/Converters.java
Outdated
Show resolved
Hide resolved
src/main/java/com/autotune/analyzer/utils/AnalyzerErrorConstants.java
Outdated
Show resolved
Hide resolved
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!
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
@shreyabiradar07 - Are we updating the demos with the changes done in all PRs related to default metric, metadata profiles? |
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
@chandrams kruize-demos PR 128, has the corresponding default metric, metadata profiles and integration changes with create experiment JSON. |
Description
This PR includes the following changes:
metadata_profile
inKruizeLMExperimentEntry.java
local monitoring experiment.MetadataProfile
CRD contextmetadata_profile
field withCreateExperiment
API for local monitoringNote: PR #1543 has corresponding test and documentation changes.
Type of change
How has this been tested?
Please describe the tests that were run to verify your changes and steps to reproduce. Please specify any test configuration required.
Test Configuration
Checklist 🎯
Additional information
docker image:
quay.io/shbirada/integrate_create_exp:v1