-
Notifications
You must be signed in to change notification settings - Fork 457
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
Add metrics field to autoscaler #1203
Comments
cc) @kevinearls |
@Irakus @pavolloffay Are there any metrics you'd like to prioritize? I've only taken an initial look at the code, but covering everything that autoscaler is capable of might be difficult. |
@kevinearls the issue is based on this paragraph in k8 documentation Autoscaling on multiple metrics and custom metrics |
@kevinearls, do we intend to add more metrics to the HPA? |
If there will be use-case yes, but so far might be fine with what we have - CPU and memory metrics. |
I'd suggest closing this issue for now, once we have enough metrics to handle the HPA. We could tackle new metrics in the future, once we have the use case. |
@yuriolisa @pavolloffay I created this new issue (#1560) to request autoscaling based on Pod custom metrics. HPA's support scaling on many different metric types, so I propose adding the necessary fields to the operator's autoscaler Spec to support the |
Hi @yuriolisa @pavolloffay @iblancasa I wonder if y'all have any thoughts about supporting custom pod metrics? I have some time to work on this and want to get some input before I fully complete an initial PR for this. My goal is to support custom pod metrics (for example scaling on
Would become
This would also allow us to support the custom pod metrics I mention in #1560. However it would be a lot of work to validate all the possible metric types when we only really need the Pod and Resource Metric Types. Another option would be to create an array specifically for Pod metrics without deprecating
However the drawback is the autoscaler config would continue to diverge from the documented Kubernetes HPA. Would it be best to just fully support the metrics array ([]MetricSpec)? |
I believe this was closed by #1651, let me know if you have any issues or questions. |
Right now, OpenTelemetry Collector can only scale based on targetCPUUtilization field which has been replaced by metrics array. This will allow to scale on memory utilization as well.
The text was updated successfully, but these errors were encountered: