Description
Kube Metrics Adapter is a general-purpose metrics adapter for Kubernetes. It collects custom and external metrics and serves them so that Horizontal Pod Autoscaling can scale workloads on them. Scaling from Prometheus metrics and SQS queues works out of the box, and the adapter supports other sources too. It discovers HorizontalPodAutoscaler resources and starts collecting only the metrics they request, storing them in memory. Collectors are configured from metric-config annotations on the HPA, which makes the json-path pod collector one example. The adapter is built on the custom-metrics-apiserver library and is written in Go. The project aims to support the latest three minor Kubernetes releases, and its default API is autoscaling/v2, which has been available since Kubernetes 1.23 and must exist in the cluster. You install it into a cluster from a cloned copy of the repository, after building with Go modules.…
Highlights
- Custom and external metrics for HPA
- Prometheus and SQS scaling out of the box
- Annotation-based metric configuration
- Collectors started only when needed
- Aims to support the latest three Kubernetes minor releases
Ratings & Reviews
No ratings yet
Be the first to rate Kube Metrics Adapter.
People also visit
Kube Metrics Adapter FAQ
What does it do?
It serves custom and external metrics to Kubernetes so Horizontal Pod Autoscaling can scale on them, for example Prometheus metrics or SQS queues.
How do I configure a metric?
Use metric-config annotations on the HorizontalPodAutoscaler. The README's example collects requests-per-second from each pod with a json-path pod collector.
Which Kubernetes versions are supported?
The project aims to support the latest three minor Kubernetes releases. The default API is autoscaling/v2, available since v1.23.
How do I install it?
Clone the repository and follow its steps to install it in your cluster. Building needs Go, with Go modules support from Go 1.11.
What are the best Kube Metrics Adapter alternatives?
Popular alternatives to Kube Metrics Adapter include Prometheus Operator, Helm Exporter and Cluster Monitoring. See all Kube Metrics Adapter alternatives




