alibaba-cloud-metrics-adapter collects metrics from your cluster so that Horizontal Pod Autoscaler (HPA) can automatically scale application pods based on those metrics. This topic describes how to deploy alibaba-cloud-metrics-adapter in a registered cluster using the ACK console.
Prerequisites
Before you begin, ensure that you have:
An ACK One registered cluster with an external Kubernetes cluster (deployed in an on-premises data center) connected to it. See Create an ACK One registered cluster.
A kubectl client connected to the registered cluster. See Connect to a cluster using kubectl.
How it works
Kubernetes defines three categories of metrics, each collected by a different component:
| Metric type | Collected by | Used for |
|---|---|---|
| Resource metrics | metrics-server | Monitor usage of Kubernetes resources such as pods, nodes, and namespaces |
| Custom metrics | Application Real-Time Monitoring Service (ARMS) Prometheus | Scale application pods based on application-level metrics |
| External metrics | alibaba-cloud-metrics-adapter (via the external metrics API) | Monitor external signals, such as queries per second (QPS) to an Ingress, and trigger HPA scaling when a threshold is exceeded |
Deploy alibaba-cloud-metrics-adapter
Log on to the ACK console.
In the left-side navigation pane, choose Marketplace > Marketplace.
On the Marketplace page, click the App Catalog tab. Find and click ack-alibaba-cloud-metrics-adapter.
On the ack-alibaba-cloud-metrics-adapter page, click Deploy.
In the Deploy wizard, select a cluster and namespace, then click Next. Use the default values for the Namespace and Release Name parameters.
On the Parameters wizard page, set the following parameters, then click OK.