# my global config global: scrape_interval: 1m evaluation_interval: 1m # scrape_timeout is set to the global default (10s). # Alertmanager configuration alerting: alertmanagers: - static_configs: - targets: # - alertmanager:9093 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. rule_files: # - "first_rules.yml" # - "second_rules.yml" # A scrape configuration containing exactly one endpoint to scrape: scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] - job_name: 'example1' static_configs: - targets: ['example1.com'] scheme: "https" basic_auth: username: user password: password - job_name: 'example2' static_configs: - targets: ['example2.com:9100'] scheme: "https" basic_auth: username: user password: password