-
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
feat: Provide Azure Application Insights Scaler #2506
Conversation
@markrzasa We're preparing a release for tomorrow. Do you think you can complete the PR before tomorrow in the late morning CET? |
And I think that we need to have these env values defined in the GH secrets.
|
Adding now in GitHub as secrets |
Before I do so, what identity is it using? The same as other Azure resources? If so, then I need @ahmelsayed to create an AI instance |
The code should match the documentation now. |
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.
Nice job with this scaler! 😃
Please, add a unit test (like this) to check that the metric names are generated correctly
Apart from that, some small nits
should be all set now |
I believe all comments have been addressed. If everything looks good, please feel free to complete this PR. Otherwise, I'm not in a big rush to get this merged. I can wait until the next release. |
Thank you for the PR, very smooth!
In terms of this, can you elaborate for your e2e tests @markrzasa? We'll need to add a test resource but want to understand what identity it is using now. Can you fix the DCO issues please? You can learn more in our contribution guide. |
We are pushing the release to next Monday so that should give us more time if we want |
In order to run the end-to-end app insights test, you'll need a service principal assigned the 'Monitoring Reader' role scoped to your application insights resource. This setup is likely similar to what is in place for the log analytics scaler.
Yes. I'll fix that. |
Added to GitHub repo's secrets. |
Did you add them also to the main branch? |
Provide e2e secrets for Azure Application Insights scaler. Relates to #2506 Signed-off-by: Tom Kerkhove <[email protected]>
Provide e2e secrets for Azure Application Insights scaler. Relates to #2506 Signed-off-by: Tom Kerkhove <[email protected]>
Provide e2e secrets for Azure Application Insights scaler. Relates to #2506 Signed-off-by: Tom Kerkhove <[email protected]>
See #2568, ignore PredictKube as I created branch off of the last commit when I added them (sorry) |
/run-e2e azure-app-insights.* |
@markrzasa could you please rebase your PR, so it contains only relevant commits, it is hard to do a review :) |
I don't mind doing that, but I could use a little help. Is there a specific set of steps or some doc that you would recommend to help me rebase? |
I rebased the PR. Hopefully, I handled it correctly. |
It looks like the test may need a little more time to scale. I've updated the test to wait a little longer. |
author Mark Rzasa <[email protected]> 1642970493 -0500 committer Mark Rzasa <[email protected]> 1643317483 -0500 app insights scaler Signed-off-by: Mark Rzasa <[email protected]> Add PredictKube scaler (kedacore#2418) Signed-off-by: Daniel Yavorovych <[email protected]> Signed-off-by: alex60217101990 <[email protected]> bump deps (kedacore#2563) Signed-off-by: Zbynek Roubalik <[email protected]> Clear scalers cache correctly both in Operator and Metrics Server (kedacore#2564) Signed-off-by: Zbynek Roubalik <[email protected]> test: Provide e2e secrets for Azure Application Insights scaler (kedacore#2568) Signed-off-by: Tom Kerkhove <[email protected]> Signed-off-by: Mark Rzasa <[email protected]>
Signed-off-by: Mark Rzasa <[email protected]>
I think I've botched this PR. I see a lot of changes in files that have nothing to do with app insights. Should I discard the PR and start a new one? |
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.
Looking good, just a minor nits
/run-e2e azure-app-insights.* |
Looks good. Thanks for re-running that. |
Signed-off-by: Mark Rzasa <[email protected]>
Signed-off-by: Mark Rzasa <[email protected]>
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
Thanks a ton @markrzasa, I love this one! |
Signed-off-by: Mark Rzasa [email protected]
This pull request adds an Azure Application Insights scaler. This is related to this issue:
#1965
This pull request is marked as a draft because an app insights scaler may not be necessary to resolve issue 1965. Alternatively, the Azure Log Analytics scaler could be used to read app insights metrics from the AppMetrics table.
Here is the keda-docs PR: kedacore/keda-docs#638
Checklist
Fixes #1965