cloudscale 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cloudscale.rb +10 -8
- data/lib/cloudscale/monitor/agent/agent.rb +9 -8
- data/lib/cloudscale/monitor/preops/preop.rb +21 -17
- data/lib/cloudscale/monitor/reporter/influxdb_reporter.rb +10 -9
- data/lib/cloudscale/plugins/mongo/data/mongo_chart.json +434 -0
- data/lib/cloudscale/plugins/mongo/data/mongo_menu.json +32 -0
- data/lib/cloudscale/plugins/mongo/mongo_db_collection_status.rb +65 -0
- data/lib/cloudscale/plugins/mongo/mongo_db_status.rb +4 -3
- data/lib/cloudscale/plugins/mongo/mongo_replica_status.rb +6 -5
- data/lib/cloudscale/plugins/mongo/mongo_server_status.rb +44 -34
- data/lib/cloudscale/plugins/mongo/preops/mongodb_preop.rb +73 -75
- data/lib/cloudscale/plugins/postgres/data/postgres_chart.json +110 -0
- data/lib/cloudscale/plugins/postgres/data/postgres_menu.json +17 -0
- data/lib/cloudscale/plugins/postgres/postgres_server_status.rb +4 -4
- data/lib/cloudscale/plugins/postgres/preops/postgres_preop.rb +49 -45
- data/lib/cloudscale/registry.rb +7 -16
- data/lib/cloudscale/store/agent/agent.store +1 -1
- data/lib/cloudscale/version.rb +1 -1
- metadata +39 -36
- data/lib/cloudscale/plugins/mongo/data/os_chart.json +0 -362
- data/lib/cloudscale/plugins/mongo/data/os_menu.json +0 -17
@@ -1,362 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"os.cpu.perc" : {
|
3
|
-
"chartId" : "os.cpu.perc",
|
4
|
-
"options" : {
|
5
|
-
"title" : { "text" : "CPU Usage" },
|
6
|
-
"subtitle" : { "text" : "The CPU usage/performance details" },
|
7
|
-
"chart" : {
|
8
|
-
"type": "area"
|
9
|
-
},
|
10
|
-
"xAxis" : {
|
11
|
-
"title" : {
|
12
|
-
"text" : "Date"
|
13
|
-
},
|
14
|
-
"type" : "datetime"
|
15
|
-
},
|
16
|
-
"yAxis" : {
|
17
|
-
"title" : {
|
18
|
-
"text" : "short"
|
19
|
-
},
|
20
|
-
"type" : "linear"
|
21
|
-
},
|
22
|
-
"legend" : {
|
23
|
-
"title" : "CPU Usage",
|
24
|
-
"enabled" : true,
|
25
|
-
"align" : "center",
|
26
|
-
"verticalAlign" : "bottom"
|
27
|
-
}
|
28
|
-
},
|
29
|
-
"queries" :[{
|
30
|
-
"command" : "select mean(value) from /^[[agentInstanceId]].os.cpu.perc\\./i"
|
31
|
-
}],
|
32
|
-
"agentInstanceId" : null,
|
33
|
-
"menuId" : "os.overview",
|
34
|
-
"order" : 0,
|
35
|
-
"width" : 12,
|
36
|
-
"height" : 0
|
37
|
-
},
|
38
|
-
"os.ram" : {
|
39
|
-
"chartId" : "os.ram",
|
40
|
-
"options" : {
|
41
|
-
"title" : { "text" : "RAM Usage" },
|
42
|
-
"subtitle" : { "text" : "The RAM usage/performance details" },
|
43
|
-
"chart" : {
|
44
|
-
"type": "area"
|
45
|
-
},
|
46
|
-
"xAxis" : {
|
47
|
-
"title" : {
|
48
|
-
"text" : "Date"
|
49
|
-
},
|
50
|
-
"type" : "datetime"
|
51
|
-
},
|
52
|
-
"yAxis" : {
|
53
|
-
"title" : {
|
54
|
-
"text" : "short"
|
55
|
-
},
|
56
|
-
"type" : "linear"
|
57
|
-
},
|
58
|
-
"legend" : {
|
59
|
-
"title" : "RAM Usage",
|
60
|
-
"enabled" : true,
|
61
|
-
"align" : "center",
|
62
|
-
"verticalAlign" : "bottom"
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"queries" : [{
|
66
|
-
"command" : "select mean(value) from /^[[agentInstanceId]].os.ram\\./i"
|
67
|
-
}],
|
68
|
-
"agentInstanceId" : null,
|
69
|
-
"menuId" : "os.overview",
|
70
|
-
"order" : 0,
|
71
|
-
"width" : 6,
|
72
|
-
"height" : 0
|
73
|
-
},
|
74
|
-
"os.swap" : {
|
75
|
-
"chartId" : "os.swap",
|
76
|
-
"options" : {
|
77
|
-
"title" : { "text" : "Swap Usage" },
|
78
|
-
"subtitle" : { "text" : "The Swap usage/performance details" },
|
79
|
-
"chart" : {
|
80
|
-
"type": "area"
|
81
|
-
},
|
82
|
-
"xAxis" : {
|
83
|
-
"title" : {
|
84
|
-
"text" : "Date"
|
85
|
-
},
|
86
|
-
"type" : "datetime"
|
87
|
-
},
|
88
|
-
"yAxis" : {
|
89
|
-
"title" : {
|
90
|
-
"text" : "short"
|
91
|
-
},
|
92
|
-
"type" : "linear"
|
93
|
-
},
|
94
|
-
"legend" : {
|
95
|
-
"title" : "Swap Usage",
|
96
|
-
"enabled" : true,
|
97
|
-
"align" : "center",
|
98
|
-
"verticalAlign" : "bottom"
|
99
|
-
}
|
100
|
-
},
|
101
|
-
"queries" : [{
|
102
|
-
"command" : "select mean(value) from /^[[agentInstanceId]].os.swap\\./i"
|
103
|
-
}],
|
104
|
-
"agentInstanceId" : null,
|
105
|
-
"menuId" : "os.overview",
|
106
|
-
"order" : 0,
|
107
|
-
"width" : 6,
|
108
|
-
"height" : 0
|
109
|
-
},
|
110
|
-
"os.net.received.packets" : {
|
111
|
-
"chartId" : "os.net.received.packets",
|
112
|
-
"options" : {
|
113
|
-
"title" : { "text" : "Net Usage received" },
|
114
|
-
"subtitle" : { "text" : "The net usage packets received usage/performance details" },
|
115
|
-
"chart" : {
|
116
|
-
"type": "area"
|
117
|
-
},
|
118
|
-
"xAxis" : {
|
119
|
-
"title" : {
|
120
|
-
"text" : "Date"
|
121
|
-
},
|
122
|
-
"type" : "datetime"
|
123
|
-
},
|
124
|
-
"yAxis" : {
|
125
|
-
"title" : {
|
126
|
-
"text" : "bytes"
|
127
|
-
},
|
128
|
-
"type" : "linear"
|
129
|
-
},
|
130
|
-
"legend" : {
|
131
|
-
"title" : "Net Usage received",
|
132
|
-
"enabled" : true,
|
133
|
-
"align" : "center",
|
134
|
-
"verticalAlign" : "bottom"
|
135
|
-
}
|
136
|
-
},
|
137
|
-
"queries" : [{
|
138
|
-
"command" : "select derivative(value) from /^[[agentInstanceId]].os.network.received.packets\\./i WHERE time > now() - 300s GROUP BY time(10s)"
|
139
|
-
}],
|
140
|
-
"agentInstanceId" : null,
|
141
|
-
"menuId" : "os.overview",
|
142
|
-
"order" : 0,
|
143
|
-
"width" : 12,
|
144
|
-
"height" : 0
|
145
|
-
},
|
146
|
-
"os.net.send.packets" : {
|
147
|
-
"chartId" : "os.net.send.packets",
|
148
|
-
"options" : {
|
149
|
-
"title" : { "text" : "Net Usage packets send" },
|
150
|
-
"subtitle" : { "text" : "The net usage packets send usage/performance details" },
|
151
|
-
"chart" : {
|
152
|
-
"type": "area"
|
153
|
-
},
|
154
|
-
"xAxis" : {
|
155
|
-
"title" : {
|
156
|
-
"text" : "Date"
|
157
|
-
},
|
158
|
-
"type" : "datetime"
|
159
|
-
},
|
160
|
-
"yAxis" : {
|
161
|
-
"title" : {
|
162
|
-
"text" : "bytes"
|
163
|
-
},
|
164
|
-
"type" : "linear"
|
165
|
-
},
|
166
|
-
"legend" : {
|
167
|
-
"title" : "Net Usage send",
|
168
|
-
"enabled" : true,
|
169
|
-
"align" : "center",
|
170
|
-
"verticalAlign" : "bottom"
|
171
|
-
}
|
172
|
-
},
|
173
|
-
"queries" : [{
|
174
|
-
"command" : "select derivative(value) from /^[[agentInstanceId]].os.network.send.packets\\./i WHERE time > now() - 300s GROUP BY time(10s)"
|
175
|
-
}],
|
176
|
-
"agentInstanceId" : null,
|
177
|
-
"menuId" : "os.overview",
|
178
|
-
"order" : 0,
|
179
|
-
"width" : 12,
|
180
|
-
"height" : 0
|
181
|
-
},
|
182
|
-
"os.net.received.bytes" : {
|
183
|
-
"chartId" : "os.net.received.bytes",
|
184
|
-
"options" : {
|
185
|
-
"title" : { "text" : "Net Usage bytes received" },
|
186
|
-
"subtitle" : { "text" : "The net usage bytes received usage/performance details" },
|
187
|
-
"chart" : {
|
188
|
-
"type": "area"
|
189
|
-
},
|
190
|
-
"xAxis" : {
|
191
|
-
"title" : {
|
192
|
-
"text" : "Date"
|
193
|
-
},
|
194
|
-
"type" : "datetime"
|
195
|
-
},
|
196
|
-
"yAxis" : {
|
197
|
-
"title" : {
|
198
|
-
"text" : "bytes"
|
199
|
-
},
|
200
|
-
"type" : "linear"
|
201
|
-
},
|
202
|
-
"legend" : {
|
203
|
-
"title" : "Net Usage bytes received",
|
204
|
-
"enabled" : true,
|
205
|
-
"align" : "center",
|
206
|
-
"verticalAlign" : "bottom"
|
207
|
-
}
|
208
|
-
},
|
209
|
-
"queries" : [{
|
210
|
-
"command" : "select derivative(value) from /^[[agentInstanceId]].os.network.received.bytes\\./i WHERE time > now() - 300s GROUP BY time(10s)"
|
211
|
-
}],
|
212
|
-
"agentInstanceId" : null,
|
213
|
-
"menuId" : "os.overview",
|
214
|
-
"order" : 0,
|
215
|
-
"width" : 12,
|
216
|
-
"height" : 0
|
217
|
-
},
|
218
|
-
"os.net.send.bytes" : {
|
219
|
-
"chartId" : "os.net.send.bytes",
|
220
|
-
"options" : {
|
221
|
-
"title" : { "text" : "Net Usage bytes send" },
|
222
|
-
"subtitle" : { "text" : "The net usage bytes send usage/performance details" },
|
223
|
-
"chart" : {
|
224
|
-
"type": "area"
|
225
|
-
},
|
226
|
-
"xAxis" : {
|
227
|
-
"title" : {
|
228
|
-
"text" : "Date"
|
229
|
-
},
|
230
|
-
"type" : "datetime"
|
231
|
-
},
|
232
|
-
"yAxis" : {
|
233
|
-
"title" : {
|
234
|
-
"text" : "bytes"
|
235
|
-
},
|
236
|
-
"type" : "linear"
|
237
|
-
},
|
238
|
-
"legend" : {
|
239
|
-
"title" : "Net Usage bytes send",
|
240
|
-
"enabled" : true,
|
241
|
-
"align" : "center",
|
242
|
-
"verticalAlign" : "bottom"
|
243
|
-
}
|
244
|
-
},
|
245
|
-
"queries" : [{
|
246
|
-
"command" : "select derivative(value) from /^[[agentInstanceId]].os.network.send.bytes\\./i WHERE time > now() - 300s GROUP BY time(10s)"
|
247
|
-
}],
|
248
|
-
"agentInstanceId" : null,
|
249
|
-
"menuId" : "os.overview",
|
250
|
-
"order" : 0,
|
251
|
-
"width" : 12,
|
252
|
-
"height" : 0
|
253
|
-
},
|
254
|
-
"os.disk.usage" : {
|
255
|
-
"chartId" : "os.disk.usage",
|
256
|
-
"options" : {
|
257
|
-
"title" : { "text" : "Disk Usage" },
|
258
|
-
"subtitle" : { "text" : "The disk usage" },
|
259
|
-
"chart" : {
|
260
|
-
"type": "pie"
|
261
|
-
},
|
262
|
-
"xAxis" : {
|
263
|
-
"title" : {
|
264
|
-
"text" : "Last 15 Minutes"
|
265
|
-
},
|
266
|
-
"type" : "datetime"
|
267
|
-
},
|
268
|
-
"yAxis" : {
|
269
|
-
"title" : {
|
270
|
-
"text" : "bytes"
|
271
|
-
},
|
272
|
-
"type" : "linear"
|
273
|
-
},
|
274
|
-
"legend" : {
|
275
|
-
"title" : "Disk Usage",
|
276
|
-
"enabled" : true,
|
277
|
-
"align" : "center",
|
278
|
-
"verticalAlign" : "bottom"
|
279
|
-
}
|
280
|
-
},
|
281
|
-
"queries" : [{
|
282
|
-
"command" : "select value from /^[[agentInstanceId]].os.disk.usage\\./i where time > now() - 15m group by time(15m) limit 1"
|
283
|
-
}],
|
284
|
-
"agentInstanceId" : null,
|
285
|
-
"menuId" : "os.overview",
|
286
|
-
"order" : 0,
|
287
|
-
"width" : 6,
|
288
|
-
"height" : 0
|
289
|
-
},
|
290
|
-
"os.disk.read" : {
|
291
|
-
"chartId" : "os.disk.read",
|
292
|
-
"options" : {
|
293
|
-
"title" : { "text" : "Disk read Usage" },
|
294
|
-
"subtitle" : { "text" : "The disk read usage/performance details" },
|
295
|
-
"chart" : {
|
296
|
-
"type": "area"
|
297
|
-
},
|
298
|
-
"xAxis" : {
|
299
|
-
"title" : {
|
300
|
-
"text" : "Date"
|
301
|
-
},
|
302
|
-
"type" : "datetime"
|
303
|
-
},
|
304
|
-
"yAxis" : {
|
305
|
-
"title" : {
|
306
|
-
"text" : "bytes"
|
307
|
-
},
|
308
|
-
"type" : "linear"
|
309
|
-
},
|
310
|
-
"legend" : {
|
311
|
-
"title" : "Disk read usage",
|
312
|
-
"enabled" : true,
|
313
|
-
"align" : "center",
|
314
|
-
"verticalAlign" : "bottom"
|
315
|
-
}
|
316
|
-
},
|
317
|
-
"queries" : [{
|
318
|
-
"command" : "select derivative(value) from /^[[agentInstanceId]].os.disk.iops\\./i WHERE time > now() - 300s GROUP BY time(10s)"
|
319
|
-
}],
|
320
|
-
"agentInstanceId" : null,
|
321
|
-
"menuId" : "os.overview",
|
322
|
-
"order" : 0,
|
323
|
-
"width" : 6,
|
324
|
-
"height" : 0
|
325
|
-
},
|
326
|
-
"os.disk.write" : {
|
327
|
-
"chartId" : "os.disk.write",
|
328
|
-
"options" : {
|
329
|
-
"title" : { "text" : "Disk write Usage" },
|
330
|
-
"subtitle" : { "text" : "The disk write usage/performance details" },
|
331
|
-
"chart" : {
|
332
|
-
"type": "area"
|
333
|
-
},
|
334
|
-
"xAxis" : {
|
335
|
-
"title" : {
|
336
|
-
"text" : "Date"
|
337
|
-
},
|
338
|
-
"type" : "datetime"
|
339
|
-
},
|
340
|
-
"yAxis" : {
|
341
|
-
"title" : {
|
342
|
-
"text" : "bytes"
|
343
|
-
},
|
344
|
-
"type" : "linear"
|
345
|
-
},
|
346
|
-
"legend" : {
|
347
|
-
"title" : "Disk write usage",
|
348
|
-
"enabled" : true,
|
349
|
-
"align" : "center",
|
350
|
-
"verticalAlign" : "bottom"
|
351
|
-
}
|
352
|
-
},
|
353
|
-
"queries" : [{
|
354
|
-
"command" : "select derivative(value) from /^[[agentInstanceId]].os.disk.iops\\./i WHERE time > now() - 300s GROUP BY time(10s)"
|
355
|
-
}],
|
356
|
-
"agentInstanceId" : null,
|
357
|
-
"menuId" : "os.overview",
|
358
|
-
"order" : 0,
|
359
|
-
"width" : 6,
|
360
|
-
"height" : 0
|
361
|
-
}
|
362
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"os":{
|
3
|
-
"menuId" : "os",
|
4
|
-
"label" : "Operating System",
|
5
|
-
"description": "All Operating System relevant information",
|
6
|
-
"order" : 1,
|
7
|
-
"agentInstanceId" : null,
|
8
|
-
"subItems" : [
|
9
|
-
{
|
10
|
-
"menuId" : "os.overview",
|
11
|
-
"label" : "OS Overview",
|
12
|
-
"description" : "All relevant information regarding the currently running Operating System below the Application",
|
13
|
-
"order" : 1
|
14
|
-
}
|
15
|
-
]
|
16
|
-
}
|
17
|
-
}
|