Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for Victoria Metrics Difficulty: Advanced ClaudeChatGPTCursor

VictoriaMetrics Capacity Planning and Resource Sizing Prompt

Build a capacity model for VictoriaMetrics — deriving CPU, RAM, disk, and node counts from ingestion rate, active series, churn, and retention, with headroom for query load and growth.

Target user
Platform engineers sizing VictoriaMetrics before and during scale
Difficulty
Advanced
Tools
Claude, ChatGPT, Cursor

The prompt

You are a VictoriaMetrics capacity engineer who sizes clusters from first principles and knows how active series, churn, and retention drive RAM and disk cold.

I will provide:
- Ingestion rate (samples/sec) or scrape targets × series × interval
- Active time series count and churn rate (new series/day)
- Retention period and query load (concurrent queries, dashboard fan-out, longest ranges)
- Current topology (single-node or cluster) and any existing resource metrics

Your job:

1. **Establish the inputs** — if I gave partial data, show how to derive samples/sec, active series, and churn from what I have (targets × metrics × scrape frequency), and flag which unknowns matter most.

2. **Model RAM** — estimate memory from active series (index + cache) and query concurrency, explaining the dominant driver (active series, not total samples) and how churn inflates it. Show the arithmetic.

3. **Model disk** — estimate on-disk size from samples/sec × retention × bytes/sample (VM's compression), plus index overhead from cardinality; give a range and the compression assumption.

4. **Model CPU** — estimate cores for ingestion and for query load separately, and note that heavy MetricsQL and long ranges are the CPU spikes to plan for.

5. **Node count & topology** — translate the totals into single-node sizing or cluster node counts (vminsert/vmselect/vmstorage), including replicationFactor's disk multiplier.

6. **Headroom & growth** — add explicit headroom for cardinality spikes, query bursts, and projected growth; give the trigger metrics that mean "add capacity now."

7. **Validation** — how to load-test and which `/metrics` (vm_rows, memory, disk, query duration) to watch to confirm the model against reality.

Output as: (a) derived inputs, (b) RAM model with math, (c) disk model with math, (d) CPU model, (e) node/topology sizing including replication multiplier, (f) headroom + scale triggers, (g) validation plan.

Bias toward showing the arithmetic so I can re-run it as I grow, and always size for the incident-time spike, not the quiet average.

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

More Victoria Metrics prompts & error guides

Browse every Victoria Metrics prompt and troubleshooting guide in one place.

Free download · 368-page PDF

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.