What are `scrape_interval`, `scrape_timeout` and `evaluation_interval`?
BeginnerConceptPrometheus Architecture
Answer
scrape_interval: how often targets are scraped (default 1m; most set 15s or 30s).scrape_timeout: max time per scrape (default 10s), must be less than or equal to the interval.evaluation_interval: how often recording and alerting rules run (default 1m).
They can be overridden per job or rule group. Keep the interval consistent across a job; mixing 15s and 60s for the same metric confuses rate() windows.
More on Prometheus Architecture
Describe the Prometheus architecture.BeginnerWhat does a basic prometheus.yml look like?BeginnerWhat is the `up` metric?BeginnerWhat are `job` and `instance` labels and where do they come from?BeginnerHow is the Prometheus TSDB organized on disk?AdvancedWhat is the WAL and why does Prometheus restart slowly sometimes?Advanced