Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Why Azure Monitor Scaler metricName is deprecated #1152

Closed
lsolovey opened this issue Jun 9, 2023 · 4 comments · Fixed by #1158
Closed

Why Azure Monitor Scaler metricName is deprecated #1152

lsolovey opened this issue Jun 9, 2023 · 4 comments · Fixed by #1158
Labels
bug Something isn't working

Comments

@lsolovey
Copy link
Contributor

lsolovey commented Jun 9, 2023

KEDA documentation mentions that metricName is deprecated for Azure Monitor scaler.
https://keda.sh/docs/2.10/scalers/azure-monitor/

I understand there is a KEDA-wide effort to deprecate metricName (in a sense of KEDA metric name).

But in this particular case for Azure Monitor, does this field rather represent the actual underlying Azure Monitor metric name?

Specifications

  • KEDA Version: 2.10
  • Scaler(s): Azure Monitor
@lsolovey lsolovey added the bug Something isn't working label Jun 9, 2023
@tomkerkhove
Copy link
Member

This was changed in #1074 but I think you are correct.

@JorTurFer @zroubalik any objection in reverting this?

@JorTurFer
Copy link
Member

No from my side, we need to update keda code as well because you are right, in this scaler metricName is required because it's used for the underlying SKD

Are you willing to open the PRs removing this metric from deprecations?

@lsolovey
Copy link
Contributor Author

No from my side, we need to update keda code as well because you are right, in this scaler metricName is required because it's used for the underlying SKD

Are you willing to open the PRs removing this metric from deprecations?

@JorTurFer Sure, I can do that. What version of azure-monitor.md doc should be updated? 2.11 or 2.10 ?

Also are you saying that we should update something in the keda code besides doc edits in azure-monitor.md ? Could you point me to what needs to be changed in the code? I'll see if I can do that as well.

@JorTurFer
Copy link
Member

yeah, you should update docs v2.10 and 2.11.
in the code, you have to add the scaler in this condition:
https://github.com/kedacore/keda/blob/739b770c8eecbfd0245cd76de02d25a3716d0900/controllers/keda/scaledobject_controller.go#L358-L360

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants