1 ##############################################################################
2 # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
11 scrape_interval: 15s # By default, scrape targets every 15 seconds.
13 # Attach these labels to any time series or alerts when communicating with
14 # external systems (federation, remote storage, Alertmanager).
16 monitor: 'codelab-monitor'
18 # A scrape configuration containing exactly one endpoint to scrape:
19 # Here it's Prometheus itself.
21 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
22 - job_name: 'prometheus'
24 # Override the global default and scrape targets from this job every 5 seconds.
28 - targets: ['192.168.121.2:9090']
30 - job_name: 'cadvisor'
32 # Override the global default and scrape targets from this job every 5 seconds.
36 - targets: ['192.168.121.2:8080','10.1.0.50:8080','10.1.0.51:8080']
38 - job_name: 'collectd'
40 # Override the global default and scrape targets from this job every 5 seconds.
44 - targets: ['192.168.121.2:9103']
48 # Override the global default and scrape targets from this job every 5 seconds.
52 - targets: ['192.168.121.2:9100']