Interview Prep/Monitoring & Observability/Scaling Prometheus, Long-Term Storage & HA

How do you choose scrape intervals for different workloads at scale?

IntermediateProductionScaling Prometheus, Long-Term Storage & HA
Answer

30s is a good global default; 15s for latency-sensitive services where fast detection matters; 60s+ for slow-changing infrastructure (inventory, cloud exporters) where frequent scraping only adds cost and API calls. Halving the interval doubles samples and storage. Keep intervals consistent within a job, and make rate() windows at least 4x the interval.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Scaling Prometheus, Long-Term Storage & HA