Metrics Server
Learn Metrics Server for Kubernetes resource metrics, kubectl top, HPA support, and its limits compared with full observability systems.
Last reviewed: June 2026
🔍 What Is It?
Metrics Server is a lightweight cluster add-on that exposes resource metrics through the Kubernetes metrics API.
🎯 Why Do We Need It?
Kubernetes needs current CPU and memory metrics for autoscaling and basic operational inspection.
Common developer mistakes:
- →Treating Kubernetes YAML as copy-paste configuration instead of production architecture
- →Ignoring requests, limits, health probes, security context, and rollout behavior
- →Debugging only the Pod while forgetting Services, DNS, NetworkPolicies, nodes, and admission controls
- →Manually changing live objects without updating Git or infrastructure automation
🏗️ What Happens in Real Projects?
A platform team installs Metrics Server so developers can run kubectl top pods and HPA can scale Deployments based on CPU utilization.
⚙️ How It Works
Metrics Server scrapes kubelet summary metrics from nodes and exposes aggregated metrics through the metrics.k8s.io API. It is not a long-term metrics store.
💻 Example
Metrics Server usage — Commands and autoscaling dependency.
🤔 Common Confusions
❓ Is Metrics Server Prometheus?
No. Metrics Server is for current resource metrics. Prometheus stores and queries broader time-series metrics.
❓ Does Metrics Server store historical data?
No. Use Prometheus or another monitoring platform for history.
❓ Can HPA use Metrics Server?
Yes, for CPU and memory resource metrics.
🚨 Common Production Issues
**Metrics Server missing** breaks kubectl top and resource-based HPA.
**TLS/kubelet access issues** prevent metrics collection.
**Expecting history** from Metrics Server leads to poor incident analysis.
**No resource requests** weakens HPA usefulness.
✅ Best Practices
Install and monitor Metrics Server in production clusters
Use Prometheus for historical and custom metrics
Set resource requests for HPA calculations
Validate metrics during cluster upgrades
🏛️ Architect's Note
Metrics Server is plumbing for autoscaling, not your observability platform. Keep that distinction clear during architecture discussions.
💬 Frequently Asked Questions
🎯 Key Takeaways
🔗 Related Topics
🎯 Practice this topic in interviews
↗ Where this topic fits
Kubernetes Technology Guide
Return to the Kubernetes learning hub.
Cloud Engineer Career Path
A practical route through cloud fundamentals, AWS services, containers, delivery, and architecture-focused interview preparation.
DevOps Engineer Career Path
A structured route through automation, container delivery, platform operations, production support, and interview preparation.
Sources
Sources / References
Use these Kubernetes references to verify the concept in official docs and continue into the most relevant SplashRide pages.
Official documentation
Related SplashRide pages
SplashRide Kubernetes learning path
Browse the full Kubernetes topic collection and learning order on SplashRide.
Kubernetes Interview Prep
Practice Kubernetes interview questions and scenario-based answers.
Cloud Engineer Career Path
A practical route through cloud fundamentals, AWS services, containers, delivery, and architecture-focused interview preparation.
DevOps Engineer Career Path
A structured route through automation, container delivery, platform operations, production support, and interview preparation.
Horizontal Pod Autoscaler
Understand HPA for scaling Pod replicas based on CPU, memory, custom metrics, and production traffic behavior.
Prometheus
Understand Prometheus for Kubernetes metrics collection, service discovery, alerting rules, recording rules, and production observability.