{"repo":"zalando-incubator/kube-metrics-adapter","free":true,"listed":false,"github":"https://github.com/zalando-incubator/kube-metrics-adapter","clone":"git clone https://github.com/zalando-incubator/kube-metrics-adapter.git","description":"General purpose metrics adapter for Kubernetes HPA metrics","language":"Go","stars":543,"topics":["kubernetes","custom","metrics","external","hpa","horizontal","pod","autoscaling","zalando","prometheus"],"license":"MIT","category":"analytics","readme_excerpt":"kube-metrics-adapter Kube Metrics Adapter is a general purpose metrics adapter for Kubernetes that can collect and serve custom and external metrics for Horizontal Pod Autoscaling. It supports scaling based on Prometheus metrics, SQS queues and others out of the box. It discovers Horizontal Pod Autoscaling resources and starts to collect the requested metrics and stores them in memory. It's implemented using the custom-metrics-apiserver library. Here's an example of a HorizontalPodAutoscaler resource configured to get requests-per-second metrics from each pod of the deployment myapp . The metric-config. annotations are used by the kube-metrics-adapter to configure a collector for getting the metrics. In the above example it configures a json-path pod collector . Kubernetes compatibility Like the support policy offered for Kubernetes, this project aims to support the latest three minor releases of Kubernetes. The default supported API is autoscaling/v2 (available since v1.23 ). This API MUST be available in the cluster which is the default. Building This project uses Go modules as introduced in Go 1.11 therefore you need Go =1.11 installed in order to build. If using Go 1.11 you also need to activate Module support. Assuming Go has been setup with module support it can be built simply by running: Install in Kubernetes Clone this repository, and run as below: Collectors Collectors are different implementations for getting metrics requested by an HPA resource. They are configure","default_branch":null,"files":null,"tree":[],"storefront":"/r/zalando-incubator","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zalando-incubator/kube-metrics-adapter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}