forked from percona/pmm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus.yml
188 lines (153 loc) · 4.51 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
global:
scrape_interval: 1s
scrape_timeout: 1s
evaluation_interval: 5s
scrape_configs:
- job_name: prometheus
metrics_path: /prometheus/metrics
static_configs:
- targets: ['localhost:9090']
labels:
instance: prometheus
- job_name: grafana
scrape_interval: 5s
scrape_timeout: 4s
static_configs:
- targets: ['localhost:3000']
labels:
instance: pmm-server
- job_name: linux
basic_auth:
username: ENV_SERVER_USER
password: ENV_SERVER_PASSWORD
tls_config:
insecure_skip_verify: true
consul_sd_configs:
- server: 'localhost:8500'
datacenter: dc1
services: ['linux:metrics']
relabel_configs:
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([-\w:\.]+),.*'
target_label: 'instance'
replacement: '$1'
- source_labels: ['__meta_consul_tags']
regex: '.*,scheme_https,.*'
target_label: '__scheme__'
replacement: 'https'
static_configs:
- targets: ['localhost:9100']
labels:
instance: pmm-server
- job_name: proxysql
basic_auth:
username: ENV_SERVER_USER
password: ENV_SERVER_PASSWORD
tls_config:
insecure_skip_verify: true
consul_sd_configs:
- server: 'localhost:8500'
datacenter: dc1
services: ['proxysql:metrics']
relabel_configs:
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([-\w:\.]+),.*'
target_label: 'instance'
replacement: '$1'
- source_labels: ['__meta_consul_tags']
regex: '.*,scheme_https,.*'
target_label: '__scheme__'
replacement: 'https'
- job_name: mongodb
basic_auth:
username: ENV_SERVER_USER
password: ENV_SERVER_PASSWORD
tls_config:
insecure_skip_verify: true
consul_sd_configs:
- server: 'localhost:8500'
datacenter: dc1
services: ['mongodb:metrics']
relabel_configs:
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([-\w:\.]+),.*'
target_label: 'instance'
replacement: '$1'
- source_labels: ['__meta_consul_tags']
regex: '.*,scheme_https,.*'
target_label: '__scheme__'
replacement: 'https'
- source_labels: ['__meta_consul_tags']
regex: '.*,cluster_([-\w:\.]+),.*'
target_label: 'cluster'
replacement: '$1'
- job_name: mysql-hr
metrics_path: /metrics-hr
basic_auth:
username: ENV_SERVER_USER
password: ENV_SERVER_PASSWORD
tls_config:
insecure_skip_verify: true
consul_sd_configs:
- server: 'localhost:8500'
datacenter: dc1
services: ['mysql:metrics']
relabel_configs:
- target_label: 'job'
replacement: 'mysql'
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([-\w:\.]+),.*'
target_label: 'instance'
replacement: '$1'
- source_labels: ['__meta_consul_tags']
regex: '.*,scheme_https,.*'
target_label: '__scheme__'
replacement: 'https'
- job_name: mysql-mr
metrics_path: /metrics-mr
scrape_interval: 5s
scrape_timeout: 1s
basic_auth:
username: ENV_SERVER_USER
password: ENV_SERVER_PASSWORD
tls_config:
insecure_skip_verify: true
consul_sd_configs:
- server: 'localhost:8500'
datacenter: dc1
services: ['mysql:metrics']
relabel_configs:
- target_label: 'job'
replacement: 'mysql'
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([-\w:\.]+),.*'
target_label: 'instance'
replacement: '$1'
- source_labels: ['__meta_consul_tags']
regex: '.*,scheme_https,.*'
target_label: '__scheme__'
replacement: 'https'
- job_name: mysql-lr
metrics_path: /metrics-lr
scrape_interval: 60s
scrape_timeout: 5s
basic_auth:
username: ENV_SERVER_USER
password: ENV_SERVER_PASSWORD
tls_config:
insecure_skip_verify: true
consul_sd_configs:
- server: 'localhost:8500'
datacenter: dc1
services: ['mysql:metrics']
relabel_configs:
- target_label: 'job'
replacement: 'mysql'
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([-\w:\.]+),.*'
target_label: 'instance'
replacement: '$1'
- source_labels: ['__meta_consul_tags']
regex: '.*,scheme_https,.*'
target_label: '__scheme__'
replacement: 'https'