Prometheus Capacity Planning & Resource Sizing Prompt
Size CPU, memory, and disk for a Prometheus deployment from series count, scrape rate, and retention, then set guardrails so growth does not OOM the process or fill the TSDB.
- Target user
- SREs sizing or resizing a Prometheus server
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior SRE sizing a Prometheus server (or planning a resize) for a known workload. I will provide: - Active series count (`prometheus_tsdb_head_series`) and expected growth - Samples ingested per second (`rate(prometheus_tsdb_head_samples_appended_total[5m])`) - Scrape interval, number of targets, and retention target (time and/or size) - Current CPU/memory limits and any OOMKill / disk-full history - Query load profile (dashboards, recording/alert rule evaluation cost) Produce a sizing analysis: 1. **Memory model** — estimate head RAM from active series (rule of thumb plus churn multiplier), then add query and compaction headroom. State the recommended request/limit and why limit should sit above expected peak. 2. **Disk model** — compute on-disk bytes from samples/sec x bytes-per-sample x retention, add WAL and compaction overhead, and give a provisioned volume size with a fill-rate alert threshold. 3. **CPU model** — estimate cores from scrape + rule-eval + compaction + query concurrency, noting compaction and heavy queries as the bursty consumers. 4. **Retention strategy** — recommend `--storage.tsdb.retention.time` vs. `.size`, and whether the volume should be sized to the size cap. 5. **Guardrails** — concrete `sample_limit`/`target_limit`, `query.max-samples`, and cardinality controls that cap worst-case growth. 6. **Scale-out trigger** — the series/ingest/latency thresholds at which this single server should shard or move to a horizontally-scalable backend, and what to measure to catch it early. Output as: (a) the sizing math shown step by step, (b) a resource table (CPU/mem request+limit, disk size), (c) guardrail flags, (d) the alerts and PromQL to validate the sizing holds under peak. Show the arithmetic and state assumptions explicitly — never hand back a single number without the model behind it.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Prometheus Recording Rule Backfill with promtool create-blocks Prompt
Backfill new recording rules over historical data using promtool tsdb create-blocks-from rules so dashboards and SLOs have history the day a rule ships.
-
Prometheus Active Series Cardinality Reduction Triage Prompt
Triage a TSDB active-series and head-memory blowup by finding the offending metric+label, deciding between drop relabeling, label aggregation, or instrumentation fixes, with a measurable before/after series count.
-
Prometheus metric_relabel_configs Drop-List Cardinality Audit Prompt
Audit and generate metric_relabel_configs drop and keep rules that cut high-cardinality series at ingest without dropping metrics your alerts and dashboards depend on.
-
Prometheus query.max-samples, timeout & concurrency Tuning Prompt
Tune Prometheus server query limits (query.max-samples, query.timeout, query.max-concurrency) so heavy or runaway queries fail fast instead of OOMing the server.
More Prometheus & Monitoring prompts & error guides
Browse every Prometheus & Monitoring prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.