- Global Block Controls the Prometheus server's global configuration
global: scrape_interval: 15s # controls how often Prometheus will scrape targets evaluation_interval: 15s # controls how often Prometheus will evaluate rules
- rule_files block specifies the location of any rules we want the Prometheus server to load
rule_files: # - "first.rules" # - "second.rules"
scrape_configs: - job_name: prometheus static_configs: - targets: ['localhost:9090']