-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathbonitoo.toml
352 lines (326 loc) · 18.4 KB
/
bonitoo.toml
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
title = "Bonitoo schema"
[[measurements]]
name = "cpu"
# sample 40% of the tag set, default is to sample 50%
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" }
# specific tags
]
fields = [
{ name = "usage_guest", count = 8640, source = { type = "rand<float>", seed = 10 } },
{ name = "usage_guest_nice", count = 8640, source = { type = "rand<float>", seed = 11 } },
{ name = "usage_idle", count = 8640, source = { type = "rand<float>", seed = 12 } },
{ name = "usage_iowait", count = 8640, source = { type = "rand<float>", seed = 13 } },
{ name = "usage_irq", count = 8640, source = { type = "rand<float>", seed = 14 } },
{ name = "usage_nice", count = 8640, source = { type = "rand<float>", seed = 15 } },
{ name = "usage_softirq", count = 8640, source = { type = "rand<float>", seed = 16 } },
{ name = "usage_steal", count = 8640, source = { type = "rand<float>", seed = 17 } },
{ name = "usage_system", count = 8640, source = { type = "rand<float>", seed = 18 } },
{ name = "usage_user", count = 8640, source = { type = "rand<float>", seed = 19 } },
]
[[measurements]]
name = "disk"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" },
# specific tags
{ name = "fstype", source = "ext3" },
{ name = "path", source = "/dev/sda1" }
]
fields = [
{ name = "free", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "inodes_free", count = 8640, source = [3,5,5,6,7,9,1,2,9,6] },
{ name = "inodes_total", count = 8640, source = [1,8,5,3,9,1,2,2,3,6] },
{ name = "inodes_used", count = 8640, source = [7,4,5,9,1,2,3,6,2,1] },
{ name = "total", count = 8640, source = [2,3,6,5,3,5,6,7,9,1] },
{ name = "used", count = 8640, source = [1,5,6,7,9,2,3,6,3,5] },
{ name = "used_percent", count = 8640, source = [1,2,3,6,5,6,7,9,5,3] },
]
[[measurements]]
name = "diskio"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" },
# specific tags
{ name = "serial", source = "parallel" },
]
fields = [
{ name = "io_time", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "read_bytes", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "read_time", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "reads", count = 8640, source = 494785 },
{ name = "write_bytes", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "write_time", count = 8640, source = [100, 1000, 1102, 3049] },
{ name = "writes", count = 8640, source = [10, 20, 15, 19] },
]
[[measurements]]
name = "kernel"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" },
# specific tags
]
fields = [
{ name = "boot_time", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "context_switches", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "disk_pages_in", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "disk_pages_out", count = 8640, source = 494785 },
{ name = "interrupts", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "processes_forked", count = 8640, source = [100, 1000, 1102, 3049] },
]
[[measurements]]
name = "net"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" },
# specific tags
{ name = "interface", source = "eth1" }
]
fields = [
{ name = "evicted_keys", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "expired_keys", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "instantaneous_input_kbps", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "instantaneous_ops_per_sec", count = 8640, source = 494785 },
{ name = "instantaneous_output_kbps", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "keyspace_hits", count = 8640, source = [100, 1000, 1102, 3049] },
{ name = "keyspace_misses", count = 8640, source = [100, 1000, 1102, 3049] },
]
# example splitting mem into different sets, for example differentiating by os and datacenter
#
# NOTE: fields types are verified to be the same type across all definitions of a single measurement
[[measurements]]
name = "mem"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" },
# specific tags
]
fields = [
{ name = "available", count = 8640, source = 3325 },
{ name = "available_percent", count = 8640, source = 1985 },
{ name = "buffered", count = 8640, source = 9575621 },
{ name = "buffered_percent", count = 8640, source = 489934 },
{ name = "cached", count = 8640, source = 100000 },
{ name = "free", count = 8640, source = [123, 10, 102, 349] },
{ name = "total", count = 8640, source = [12, 22, 95, 229] },
{ name = "used", count = 8640, source = [15, 29, 55, 339] },
{ name = "used_percent", count = 8640, source = [1, 21, 35, 189] },
]
[[measurements]]
name = "nginx"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" },
# specific tags
{ name = "port", source = "8888" },
{ name = "server", source = "server-02" }
]
fields = [
{ name = "accepts", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "active", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "handled", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "reading", count = 8640, source = 494785 },
{ name = "requests", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "waiting", count = 8640, source = [100, 1000, 1102, 3049] },
]
[[measurements]]
name = "postgresl"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" }
# specific tags
]
fields = [
{ name = "blk_read_time", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "blk_write_time", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "blks_hit", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "blks_read", count = 8640, source = 494785 },
{ name = "conflicts", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "deadlocks", count = 8640, source = [100, 1000, 1102, 3049] },
{ name = "numbackends", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "temp_bytes", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "temp_files", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "tup_deleted", count = 8640, source = 494785 },
{ name = "tup_fetched", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "tup_inserted", count = 8640, source = [100, 1000, 1102, 3049] },
{ name = "tup_returned", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "tup_updated", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "xact_commit", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "xact_rollback", count = 8640, source = 494785 },
]
[[measurements]]
name = "redis"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" },
# specific tags
{ name = "port", source = "6379" },
{ name = "server", source = "redis_02" },
]
fields = [
{ name = "connected_clients", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "connected_slaves", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "evicted_keys", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "expired_keys", count = 8640, source = 494785 },
{ name = "instantaneous_input_kbps", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "instantaneous_ops_per_sec", count = 8640, source = [100, 1000, 1102, 3049] },
{ name = "instantaneous_output_kbps", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "keyspace_hits", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "keyspace_misses", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "latest_fork_usec", count = 8640, source = 494785 },
{ name = "master_repl_offset", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "mem_fragmentation_ratio", count = 8640, source = [100, 1000, 1102, 3049] },
{ name = "pubsub_channels", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "pubsub_patterns", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "rdb_changes_since_last_save", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "repl_backlog_active", count = 8640, source = 494785 },
{ name = "repl_backlog_histlen", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "repl_backlog_size", count = 8640, source = [100, 1000, 1102, 3049] },
{ name = "sync_full", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "sync_partial_err", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "sync_partial_ok", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "total_connections_received", count = 8640, source = 494785 },
{ name = "uptime_in_seconds", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "used_cpu_sys", count = 8640, source = [100, 1000, 1102, 3049] },
{ name = "used_cpu_sys_children", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
{ name = "used_cpu_user", count = 8640, source = [49854,10,58873,598,111,333,5] },
{ name = "used_cpu_user_children", count = 8640, source = [4957,120,10475,847457,44646,2222] },
{ name = "used_memory", count = 8640, source = 494785 },
{ name = "used_memory_lua", count = 8640, source = [14957,1120,110475,1847457,144646,222] },
{ name = "used_memory_peak", count = 8640, source = [100, 1000, 1102, 3049] },
{ name = "used_memory_rss", count = 8640, source = [5,6,7,9,1,2,3,6,5,3] },
]
[[measurements]]
name = "status"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" },
# specific tags
]
fields = [
{ name = "service_up", count = 8640, source = [0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1] },
]
[[measurements]]
name = "system"
sample = 1.0
tags = [
# common tags
{ name = "arch", source = "x86" },
{ name = "cluster_id", source = { type = "sequence", format = "%s", start = 0, count = 10 } },
{ name = "datacenter", source = "virginia" },
{ name = "hostname", source = ["meta_1","meta_2","meta_3","data_1","data_2","data_3","data_4","data_5","data_6","data_7"] },
{ name = "os", source = "Ubuntu15.10" },
{ name = "rack", source = "1" },
{ name = "region", source = "us-west-01" },
{ name = "service", source = "9" },
{ name = "service_environment", source = "test" },
{ name = "service_version", source = "2" }
# specific tags
]
fields = [
{ name = "load1", count = 8640, source = { type = "zipf<integer>", s = 5, v = 4, imax = 4, seed = 22 } },
{ name = "load15", count = 8640, source = { type = "zipf<integer>", s = 3, v = 4, imax = 4, seed = 23 } },
{ name = "load5", count = 8640, source = { type = "zipf<integer>", s = 7, v = 4, imax = 4, seed = 24 } },
{ name = "n_cpus", count = 8640, source = 8 },
]