# Metrics Server

Metrics Server is a lightweight Kubernetes component that collects container CPU and memory metrics from kubelets and exposes them through the Metrics API to power built-in Horizontal Pod Autoscaler and Vertical Pod. It is open source and self-hosted, installable on Docker Hub and Kubernetes (Helm).

Canonical page: https://ourlocalhost.com/app/4639/metrics-server

## Description

Metrics Server is a lightweight Kubernetes component that collects container CPU and memory metrics from kubelets and exposes them through the Metrics API to power built-in Horizontal Pod Autoscaler and Vertical Pod Autoscaler pipelines, and to display resource usage via kubectl top for quick debugging.

## Platform availability

Available on 1 of 10 platforms: Helm.

## Health score

77/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 9 days ago)
- Popular: 77 (6,789 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 84 (no serious findings, 2 minor, CI, tests, OpenSSF Scorecard 7.7/10)

## Links

- Documentation: https://kubernetes.io/docs/tasks/debug-application-cluster/resource-metrics-pipeline/
- Docker Hub: https://hub.docker.com/r/bitnamicharts/metrics-server
- Official website: https://kubernetes.io/docs/tasks/debug-application-cluster/resource-metrics-pipeline/
- Kubernetes (Helm): https://artifacthub.io/packages/helm/metrics-server/metrics-server
- GitHub: https://github.com/kubernetes-sigs/metrics-server

## Common questions

### How can I restrict who can query resource metrics?

Clients of the Kubernetes API can query the Metrics API. You can use Kubernetes access control mechanisms to manage permissions to do so.

### Which Kubernetes autoscalers use Metrics Server data?

The HorizontalPodAutoscaler and VerticalPodAutoscaler use data from the Metrics API. They use it to adjust workload replicas and resources to meet demand.

### Where does metrics-server collect its metrics from?

Metrics Server collects resource metrics from Kubelets. It exposes them through the Kubernetes apiserver using the Metrics API.

### Is the Metrics API enough for full monitoring?

The Metrics API only offers the minimum CPU and memory metrics needed for automatic scaling with HPA and/or VPA. For a more complete set of metrics, you can complement it with a second pipeline using the Custom Metrics API.

---
Source: Our Local Host (https://ourlocalhost.com/app/4639/metrics-server), the self-hosted and open-source app directory.
