promtool query range http://localhost:9090 'rate(cpu[5m])' --start=2026-08-09T00:00:00Z --end=2026-08-09T02:00:00Z --step=60s

Category: Monitoring & Observability

promtool query range http://localhost:9090 'rate(cpu[5m])' --start=2026-08-09T00:00:00Z --end=2026-08-09T02:00:00Z --step=60s

Evaluate a PromQL expression over a time range

Samples a PromQL expression between --start and --end at intervals of --step, letting you preview what a graph will show without opening the UI. rate(cpu[5m]) computes the per-second increase of a counter averaged over five-minute windows. Times accept RFC3339 or Unix epoch seconds.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.