b218711dfe5d62d0e2b39e00a1bc6164aab7898d
[bottlenecks.git] / monitor / config / prometheus.yaml
1 ##############################################################################
2 # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
3 #
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 ##############################################################################
9
10 global:
11   scrape_interval: 15s # By default, scrape targets every 15 seconds.
12
13   # Attach these labels to any time series or alerts when communicating with
14   # external systems (federation, remote storage, Alertmanager).
15   external_labels:
16     monitor: 'codelab-monitor'
17
18 # A scrape configuration containing exactly one endpoint to scrape:
19 # Here it's Prometheus itself.
20 scrape_configs:
21   # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
22   - job_name: 'prometheus'
23
24     # Override the global default and scrape targets from this job every 5 seconds.
25     scrape_interval: 5s
26
27     static_configs:
28       - targets: ['192.168.114.2:9090']
29
30   - job_name: 'cadvisor'
31
32     # Override the global default and scrape targets from this job every 5 seconds.
33     scrape_interval: 5s
34
35     static_configs:
36       - targets: ['192.168.114.2:8080','10.1.0.50:8080','10.1.0.51:8080','10.1.0.52:8080','10.1.0.53:8080','10.1.0.54:8080']
37
38   - job_name: 'collectd'
39
40     # Override the global default and scrape targets from this job every 5 seconds.
41     scrape_interval: 5s
42
43     static_configs:
44       - targets: ['192.168.114.2:9103']
45
46   - job_name: 'node'
47
48     # Override the global default and scrape targets from this job every 5 seconds.
49     scrape_interval: 5s
50
51     static_configs:
52       - targets: ['192.168.114.2:9100']