-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus.yml
executable file
·104 lines (99 loc) · 2.34 KB
/
prometheus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# my global config
global:
scrape_interval: 10s
evaluation_interval: 30s
# scrape_timeout is set to the global default (10s).
external_labels:
region: wide-camp
env: hotstage
rule_files:
- rules.yml
alerting:
alertmanagers:
- static_configs:
- targets:
- 172.16.1.105:9093
scrape_configs:
- job_name: blackbox_icmp
metrics_path: /probe
params:
module: [icmp]
static_configs:
- targets:
- 172.16.1.20
labels:
purpose: AP-controller
- targets:
- 172.16.1.2
labels:
purpose: SW-EPS
parent: sw-bof
- targets:
- 172.16.1.3
labels:
purpose: GS108PE
parent: sw-plenary
- targets:
- 172.16.1.5
labels:
purpose: alaxala
- targets:
- 172.16.1.6
labels:
purpose: cisco3560G
- targets:
- 172.16.1.7
labels:
purpose: hoge
- targets:
- 1.1.1.1
labels:
purpose: Internet
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 172.16.1.105:9115
- job_name: prometheus
static_configs:
- targets: ['172.16.1.105:9090']
relabel_configs:
- source_labels: [job]
target_label: job
- regex: __scheme__
replacement: '${1}'
action: labelmap
- job_name: 'sw-noc-cisco'
static_configs:
- labels:
type: sw-noc-cisco
targets:
- '172.16.1.6'
metrics_path: /snmp
params:
module: [cisco]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 172.16.1.105:9116
- job_name: 'AP-Controller'
static_configs:
- labels:
type: AP
targets:
- '172.16.1.20'
metrics_path: /snmp
params:
module: [aruba]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 172.16.1.105:9116