Metrics
Deciding which metrics to use is done by using MetricSpecs
, which are a key part of HPAs, and look like this:
To send these specs to the Predictive HPA, add a config option called metrics
to the PHPA, with a multiline string
containing the metric list. For example:
This allows porting over existing Kubernetes HPA metric configurations to the Predictive Horizontal Pod Autoscaler. Equivalent to K8s HPA metric specs; which are demonstrated in this HPA walkthrough. Can hold multiple values as it is an array.
See the Horizontal Pod Autoscaler documentation for a full list of supported metrics (the Predictive Horizontal Pod Autoscaler intends to be functionally equivalent).