CLI that reads pod usage from Prometheus-compatible metrics and recommends Kubernetes CPU and memory requests and limits.
Overview
Robusta KRR (Kubernetes Resource Recommender) is a command-line tool for tuning workload resources in Kubernetes. It pulls historical container CPU and memory signals from Prometheus, Thanos, VictoriaMetrics, managed cloud Prometheus offerings, Coralogix, Grafana Cloud, Mimir, and similar stores, then suggests requests and limits to reduce waste or risk.
No in-cluster agent is required for the default workflow: you run the CLI locally against a cluster context while metrics live in Prometheus. Outputs include JSON, YAML, CSV, Markdown, HTML, and integrations for Slack, a web UI via Robusta Platform, k9s, and Azure Blob export with Teams notifications. Strategies are extensible in Python, and charts explain how numbers were derived.
By default CPU requests follow the 95th percentile of usage with no limit so pods can burst; memory requests use the weekly maximum plus a fifteen percent buffer over a configurable history window. The tool contrasts with Kubernetes VPA on immediate results, per-workload config, HPA compatibility with a flag, and richer reporting.
Install options include Homebrew, release binaries, Docker images, running from source, or scheduled in-cluster jobs. It expects metrics such as container_cpu_usage_seconds_total, container_memory_working_set_bytes, and Kubernetes ownership series when available.
Key features
- Prometheus family metrics ingestion
- CPU and memory request suggestions
- No mandatory in-cluster agent
- JSON CSV Markdown HTML exports
- Custom recommendation strategies
- Recommendation explanation graphs
- Namespace and label filtered scans
- HPA compatible scan mode
Use cases
- FinOps rightsizing Kubernetes workloads
- Weekly Slack resource reports
- Compare usage before changing limits
- Multi-cluster centralized Prometheus