2 scrape_interval: 15s # By default, scrape targets every 15 seconds.
3 evaluation_interval: 5s
5 # Attach these labels to any time series or alerts when communicating with
6 # external systems (federation, remote storage, Alertmanager).
8 monitor: 'codelab-monitor'
10 # Rule files specifies a list of files from which rules are read.
14 # A scrape configuration containing exactly one endpoint to scrape:
15 # Here it's Prometheus itself.
17 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
18 - job_name: 'prometheus'
20 # Override the global default and scrape targets from this job every 5 seconds.
24 #- targets: ['localhost:9090']
28 # Override the global default and scrape targets from this job every 5 seconds.
32 - targets: ['172.17.0.1:8000']
34 - job_name: 'cAdvisor'
36 # Override the global default and scrape targets from this job every 5 seconds.
40 - targets: ['172.17.0.1:8090']
42 - job_name: 'PushGateway'
44 # Override the global default and scrape targets from this job every 5 seconds.
48 - targets: ['172.17.0.1:9091']