-
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
metricName
shouldn't be required and should be deprecated for all the scalers
#4220
Comments
@kedacore/keda-core-contributors , do you agree with this? |
Agree, this should be done for all scalers, not just Prometheus. |
@JorTurFer could you please identify those scalers and create a separate issues for them? And give them good first issues/help wanted labels? As these could be ideal issues for newcomers. |
Yeah, I will do a round checking all the scalers. |
metricName
shouldn't be required and should be deprecatedmetricName
shouldn't be required and should be deprecated for all the scalers
I have found 4 scalers where this happens. I have created an issue for each one and update this issue to track them |
@JorTurFer I could help with 1 or 2. If you can do 1 first as an example, I could look at it and see what are needed to be changed 🙏 |
Sure, I will do one of them this week (I have a trip today and I'll be outside until Wednesday night) |
What should be done:
anything else @kedacore/keda-core-contributors ? |
That's the process! |
Some more scalers to add to the task list (based on searching
|
@OsamaNabih More on that in our deprecation policy - https://github.com/kedacore/governance/blob/main/DEPRECATIONS.md |
Be careful, in that list there are some scalers which really need |
#4235 will complete the tasks "code change to print warning message with deprecation notice" and "update deprecation notice in the Changelog". kedacore/keda-docs#1074 will complete "update documentation to specify deprecation notice...". |
I was hoping to complete this today by opening a discussion but I don't have permissions to open a deprecation category discussion |
Should we create the discussion now or maybe as part of the release @kedacore/keda-core-contributors ? I guess that we should open it during the release, because maybe the new way of doing the things isn't release yet (not in this specific case) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
I think this is done |
Hello @JorTurFer, just want to double check whether we still need to deprecate keda/pkg/scalers/azure_monitor_scaler.go Line 223 in ee81112
However, I don't see any default option to use internally if metricName is not specified in trigger metadata though. Is this field metricName still needed ?keda/pkg/scalers/azure_monitor_scaler.go Lines 120 to 124 in ee81112
If it is still needed, I can make changes together in this PR too #4806 |
Nice catch @dttung2905 |
Proposal
Currently, some scalers require a
metricName
which is used only for KEDA internal things (it's not sent to the prom server).This requirement isn't necessary since we introduced mechanisms to ensure the unique metrics names inside the ScaledObject and we should make it optional and also deprecate it in favour of self-generated internal name
Scalers:
TODO list
metricName
for all scalers #4235metricName
for all scalers keda-docs#1074metricName
from Scalers. #4240metricName
for all scalers #4235The text was updated successfully, but these errors were encountered: