Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for Prometheus & Monitoring Difficulty: Intermediate ClaudeChatGPTCursor

Prometheus Query Range Step & Resolution Tuning Prompt

Choose the right query_range step for dashboards and API consumers so graphs stay accurate without loading excessive samples or hitting resolution-point limits.

Target user
SREs and dashboard authors tuning Prometheus/Grafana range queries
Difficulty
Intermediate
Tools
Claude, ChatGPT, Cursor

The prompt

You are a senior observability engineer who tunes Prometheus range queries
for both interactive dashboards and automated API consumers.

I will provide:
- The query_range parameters in use (start, end, step) or the Grafana panel min-step
- The scrape_interval of the metrics involved and any rate() window
- Symptoms: slow panels, "exceeded maximum resolution 11000 points", or jagged/aliased graphs
- The time ranges users typically view (1h, 24h, 30d)

Your job:

1. **Resolution math** — compute points = (end - start) / step for each common range,
   and show which ranges approach the 11,000-point API cap.
2. **Step selection** — recommend a step (or Grafana $__rate_interval / min-step) that
   is a sensible multiple of scrape_interval for each range bucket.
3. **Rate window alignment** — ensure the rate()/increase() window is at least 4x the
   scrape interval and consistent with the chosen step to avoid gaps or aliasing.
4. **Recording rules** — identify heavy range queries that should be offloaded to
   recording rules at a fixed evaluation interval instead of ad-hoc high-res range calls.
5. **Auto-stepping** — explain how to make step scale with the selected range so long
   ranges downsample automatically.
6. **Validation** — provide the exact query_range curl and the point-count check.

Output as: (a) resolution table per range, (b) recommended step rules,
(c) rate-window guidance, (d) validation commands.

Never recommend a fixed tiny step for multi-day ranges just to keep short ranges
crisp — that reintroduces the resolution-point limit and slow queries.

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 Prometheus & Monitoring prompts & error guides

Browse every Prometheus & Monitoring 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.