All Products
Search
Document Center

Application Real-Time Monitoring Service:Prometheus agent resource sizing

Last Updated:Mar 10, 2026

Each Prometheus agent consumes approximately 1 CPU core and 1 GB of memory per 1 million scraped metrics. To keep CPU and memory utilization at 50%, allocate double the baseline. For example, assign 2 cores and 2 GB for 1 million metrics.

Sizing recommendations

Use the following table to determine CPU and memory limits for a single Prometheus agent.

Scraped metricsRecommended CPURecommended memory
500K1 core1 GB
1M2 cores2 GB
2M4 cores4 GB

The scaling is linear: for every additional 500K metrics, add 1 CPU core and 1 GB of memory.

For example, if the Grafana dashboard shows that an agent scrapes 1 million metrics, set the agent's resource limits to 2 CPU cores and 2 GB of memory.

Check how many metrics an agent scrapes

Open the Grafana dashboard whose name contains Prometheus and run the following PromQL query:

sum (scrape_samples_scraped) by (_ARMS_AGENT_ID)

The query returns the total scraped samples grouped by agent ID. Compare each agent's count against the sizing table to determine whether you need to adjust resources.

Prometheus Grafana dashboard showing scraped metrics per agent

Stress test benchmarks

The sizing recommendations are derived from the following stress test results. The table shows actual CPU and memory consumption of a single Prometheus agent under increasing metric loads.

Scraped metrics (per agent)CPU (cores)Memory (GB)
1M0.951.09483
1.1M1.111.16045
1.2M1.361.09452
1.3M1.661.15971
1.4M1.291.09465
1.5M1.501.15977
1.6M1.391.15971
1.7M1.641.1599
1.8M1.631.42331