...
/Combine Metric Server Data with Custom Metrics
Combine Metric Server Data with Custom Metrics
In this lesson, we will discuss how to combine Metric Server data with Custom Metrics, such that HPA scales up the Deployment.
We'll cover the following...
So far, the few HPA
examples used a single custom metric to decide whether to scale the Deployment. You already know from the Autoscaling Deployments and StatefulSets Based On Resource Usage chapter that we can combine multiple metrics in an HPA
. However, all the examples in that chapter used data from the Metrics Server
. We learned that in many cases memory and CPU metrics from the Metrics Server
are not enough, so we introduced the Prometheus Adapter
that feeds custom metrics to the Metrics Aggregator. We successfully configured an HPA
to use those custom metrics. Still, more often than not, we’ll need a combination of both types of metrics in our HPA
definitions. ...