-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Enhance azure data explorer scaler metric name with trigger.metadata.metricName #3589
Enhance azure data explorer scaler metric name with trigger.metadata.metricName #3589
Conversation
…metricName Signed-off-by: Ying Liu <[email protected]>
4a0e2ee
to
f1bca18
Compare
add @v-shenoy for review |
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.
Update the CHANGELOG with this change.
Could you also add a unit test checking the metric name is being used?
@@ -118,7 +118,13 @@ func parseAzureDataExplorerMetadata(config *ScalerConfig, logger logr.Logger) (* | |||
} | |||
|
|||
// Generate metricName. | |||
metadata.MetricName = GenerateMetricNameWithIndex(config.ScalerIndex, kedautil.NormalizeString(fmt.Sprintf("%s-%s", adxName, metadata.DatabaseName))) | |||
metadataName, _ := getParameterFromConfig(config, "metricName", 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.
metadataName, _ := getParameterFromConfig(config, "metricName", false) | |
metricName, err := getParameterFromConfig(config, "metricName", 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.
@v-shenoy , updated in another approach. please help to review again.
Hmm, there has been some discussion regarding the need for this parameter - #3182 @JorTurFer @zroubalik can give their thoughts about this. |
Let's discuss this in the issue, I wrote a comment there |
Signed-off-by: Ying Liu <[email protected]>
close this PR since the solution is changed |
PR to address #3588