github.com/m3db/m3@v1.5.0/src/integration/resources/docker/config/prometheus.yml (about) 1 # my global config 2 global: 3 external_labels: 4 role: "remote" 5 scrape_interval: 5s # Set the scrape interval to every 5 seconds. Default is every 1 minute. 6 evaluation_interval: 5s # Evaluate rules every 5 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 27 # metrics_path defaults to '/metrics' 28 # scheme defaults to 'http'. 29 30 static_configs: 31 - targets: ['localhost:9090'] 32 33 - job_name: 'coordinator' 34 static_configs: 35 - targets: ['host.docker.internal:7203'] 36 37 - job_name: 'dbnode' 38 static_configs: 39 - targets: ['host.docker.internal:9004'] 40 41 remote_read: 42 - url: http://host.docker.internal:7201/api/v1/prom/remote/read 43 44 remote_write: 45 - url: http://host.docker.internal:7201/api/v1/prom/remote/write 46 write_relabel_configs: 47 - target_label: metrics_storage 48 replacement: m3db_remote