github.com/m3db/m3@v1.5.0/scripts/benchmarks/benchmark-loadgen/prometheus-template.yml (about) 1 # my global config 2 global: 3 external_labels: 4 role: "remote" 5 scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. 6 evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. 7 # scrape_timeout is set to the global default (10s). 8 9 # Alertmanager configuration 10 alerting: 11 alertmanagers: 12 - static_configs: 13 - targets: 14 # - alertmanager:9093 15 16 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. 17 rule_files: 18 # - "first_rules.yml" 19 # - "second_rules.yml" 20 21 # A scrape configuration containing exactly one endpoint to scrape: 22 # Here it's Prometheus itself. 23 scrape_configs: 24 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. 25 - job_name: prometheus 26 static_configs: 27 - targets: ["localhost:9090"] 28 29 - job_name: fakewebserver 30 static_configs: 31 - targets: [${fakewebserver_scrape_targets}] 32 33 - job_name: coordinator 34 static_configs: 35 - targets: [${coordinator_scrape_target}] 36 37 - job_name: dbnode 38 static_configs: 39 - targets: [${dbnode_scrape_targets}] 40 41 remote_read: 42 - url: http://${coordinator}/api/v1/prom/remote/read 43 44 remote_write: 45 - url: http://${coordinator}/api/v1/prom/remote/write