fluent-plugin-k8s-metrics-agg 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ {
2
+ "kind": "APIVersions",
3
+ "versions": ["v1"],
4
+ "serverAddressByClientCIDRs": [{
5
+ "clientCIDR": "0.0.0.0/0",
6
+ "serverAddress": "10.240.255.5:443"
7
+ }]
8
+ }
@@ -0,0 +1,178 @@
1
+ require 'simplecov'
2
+ require 'fluent/plugin/in_kubernetes_metrics_aggregator.rb'
3
+ SimpleCov.start
4
+
5
+ $LOAD_PATH.unshift(File.expand_path('..', __dir__))
6
+ require 'test-unit'
7
+ require 'fluent/test'
8
+ require 'fluent/test/driver/input'
9
+ require 'fluent/test/helpers'
10
+ require 'webmock/test_unit'
11
+
12
+ Test::Unit::TestCase.include(Fluent::Test::Helpers)
13
+ Test::Unit::TestCase.extend(Fluent::Test::Helpers)
14
+
15
+ module PluginTestHelper
16
+ def k8s_host
17
+ 'apiserver'
18
+ end
19
+
20
+ def k8s_port
21
+ '10255'
22
+ end
23
+
24
+ def k8s_url(path = 'api')
25
+ "https://#{k8s_host}:#{k8s_port}/#{path}"
26
+ end
27
+
28
+ def kubelet_summary_api_url_node1
29
+ k8s_url + '/v1/nodes/generics-aws-node-one:10255/proxy/stats/summary'
30
+ end
31
+
32
+ def kubelet_summary_api_url_node2
33
+ k8s_url + '/v1/nodes/generics-aws-node-two:10255/proxy/stats/summary'
34
+ end
35
+
36
+ def kubelet_summary_api_url_node3
37
+ k8s_url + '/v1/nodes/generics-aws-node-three:10255/proxy/stats/summary'
38
+ end
39
+
40
+ def stub_api_port_10250
41
+ WebMock.stub_request(:get, 'https://node.fakedestination.com:10250/api')
42
+ .with(
43
+ headers: {
44
+ 'Accept' => '*/*',
45
+ 'Accept-Encoding' => 'gzip, deflate',
46
+ 'Host' => 'node.fakedestination.com:10250'
47
+ }
48
+ )
49
+ .to_return(status: 200,
50
+ body: File.open(File.expand_path('../v1.json', __FILE__)),
51
+ headers: {})
52
+ end
53
+
54
+ def stub_api_port_10255
55
+ WebMock.stub_request(:get,
56
+ 'https://node.fakedestination.com:10255/api')
57
+ .with(
58
+ headers: {
59
+ 'Accept' => '*/*',
60
+ 'Accept-Encoding' => 'gzip, deflate',
61
+ 'Host' => 'node.fakedestination.com:10255'
62
+ }
63
+ )
64
+ .to_return(status: 200,
65
+ body: File.open(File.expand_path('../v1.json', __FILE__)),
66
+ headers: {})
67
+ end
68
+
69
+ def stub_api_v1
70
+ WebMock.stub_request(:get,
71
+ 'https://node.fakedestination.com:10255/api/v1')
72
+ .with(
73
+ headers: {
74
+ 'Accept' => '*/*',
75
+ 'Accept-Encoding' => 'gzip, deflate',
76
+ 'Host' => 'node.fakedestination.com:10255'
77
+ }
78
+ )
79
+ .to_return(status: 200,
80
+ body: File.open(File.expand_path('../v1.json', __FILE__)),
81
+ headers: {})
82
+ end
83
+
84
+ def stub_api_pods
85
+ WebMock.stub_request(:get,
86
+ 'https://node.fakedestination.com:10255/api/v1/pods')
87
+ .with(
88
+ headers: {
89
+ 'Accept' => '*/*',
90
+ 'Accept-Encoding' => 'gzip, deflate',
91
+ 'Host' => 'node.fakedestination.com:10255'
92
+ }
93
+ )
94
+ .to_return(status: 200,
95
+ body: File.open(File.expand_path('../pods.json', __FILE__)),
96
+ headers: {})
97
+ end
98
+
99
+ def stub_api_node_1
100
+ WebMock.stub_request(:get,
101
+ 'https://node.fakedestination.com:10255/api/v1/nodes/generics-aws-node-one:10255/proxy/stats/summary')
102
+ .with(
103
+ headers: {
104
+ 'Accept' => '*/*',
105
+ 'Accept-Encoding' => 'gzip, deflate',
106
+ 'Host' => 'node.fakedestination.com:10255'
107
+ }
108
+ )
109
+ .to_return(status: 200,
110
+ body: File.open(File.expand_path('../node1.json', __FILE__)),
111
+ headers: {})
112
+ end
113
+
114
+ def stub_api_node_2
115
+ WebMock.stub_request(:get,
116
+ 'https://node.fakedestination.com:10255/api/v1/nodes/generics-aws-node-two:10255/proxy/stats/summary')
117
+ .with(
118
+ headers: {
119
+ 'Accept' => '*/*',
120
+ 'Accept-Encoding' => 'gzip, deflate',
121
+ 'Host' => 'node.fakedestination.com:10255'
122
+ }
123
+ )
124
+ .to_return(status: 200,
125
+ body: File.open(File.expand_path('../node2.json', __FILE__)),
126
+ headers: {})
127
+ end
128
+
129
+ def stub_api_node_3
130
+ WebMock.stub_request(:get,
131
+ 'https://node.fakedestination.com:10255/api/v1/nodes/generics-aws-node-three:10255/proxy/stats/summary')
132
+ .with(
133
+ headers: {
134
+ 'Accept' => '*/*',
135
+ 'Accept-Encoding' => 'gzip, deflate',
136
+ 'Host' => 'node.fakedestination.com:10255'
137
+ }
138
+ )
139
+ .to_return(status: 200,
140
+ body: File.open(File.expand_path('../node3.json', __FILE__)),
141
+ headers: {})
142
+ end
143
+
144
+ def stub_api_nodes
145
+ WebMock.stub_request(:get,
146
+ 'https://node.fakedestination.com:10255/api/v1/nodes')
147
+ .with(
148
+ headers: {
149
+ 'Accept' => '*/*',
150
+ 'Accept-Encoding' => 'gzip, deflate',
151
+ 'Host' => 'node.fakedestination.com:10255'
152
+ }
153
+ )
154
+ .to_return(status: 200,
155
+ body: File.open(File.expand_path('../nodes.json', __FILE__)),
156
+ headers: {})
157
+ end
158
+
159
+ def stub_k8s_requests
160
+ stub_api_port_10250
161
+ stub_api_port_10255
162
+ stub_api_v1
163
+ stub_api_pods
164
+ stub_api_nodes
165
+ stub_api_node_1
166
+ stub_api_node_3
167
+ stub_api_node_2
168
+ end
169
+
170
+ def get_parsed_file(file_name)
171
+ parsed_string = nil
172
+ File.open(File.expand_path('../' + file_name.to_s, __FILE__)).tap do |f|
173
+ parsed_string = f.read
174
+ .close
175
+ end
176
+ parsed_string
177
+ end
178
+ end
@@ -0,0 +1,667 @@
1
+ {
2
+ "node": {
3
+ "nodeName": "generics-aws-node-one",
4
+ "systemContainers": [
5
+ {
6
+ "name": "pods",
7
+ "startTime": "2018-11-02T20:08:35Z",
8
+ "cpu": {
9
+ "time": "2018-11-29T20:28:18Z",
10
+ "usageNanoCores": 4057427,
11
+ "usageCoreNanoSeconds": 11534908965831
12
+ },
13
+ "memory": {
14
+ "time": "2018-11-29T20:28:18Z",
15
+ "availableBytes": 3976540160,
16
+ "usageBytes": 190574592,
17
+ "workingSetBytes": 169902080,
18
+ "rssBytes": 152084480,
19
+ "pageFaults": 0,
20
+ "majorPageFaults": 0
21
+ },
22
+ "userDefinedMetrics": null
23
+ }
24
+ ],
25
+ "startTime": "2018-11-02T20:08:35Z",
26
+ "cpu": {
27
+ "time": "2018-11-29T20:28:18Z",
28
+ "usageNanoCores": 29113007,
29
+ "usageCoreNanoSeconds": 61847114923284
30
+ },
31
+ "memory": {
32
+ "time": "2018-11-29T20:28:18Z",
33
+ "availableBytes": 2241974272,
34
+ "usageBytes": 3251576832,
35
+ "workingSetBytes": 1904467968,
36
+ "rssBytes": 284930048,
37
+ "pageFaults": 796869845,
38
+ "majorPageFaults": 6494
39
+ },
40
+ "network": {
41
+ "time": "2018-11-29T20:28:18Z",
42
+ "name": "eth0",
43
+ "rxBytes": 18640676488,
44
+ "rxErrors": 0,
45
+ "txBytes": 5043692461,
46
+ "txErrors": 0,
47
+ "interfaces": [
48
+ {
49
+ "name": "cbr0",
50
+ "rxBytes": 4072352373,
51
+ "rxErrors": 0,
52
+ "txBytes": 9945407142,
53
+ "txErrors": 0
54
+ },
55
+ {
56
+ "name": "eth0",
57
+ "rxBytes": 18640676488,
58
+ "rxErrors": 0,
59
+ "txBytes": 5043692461,
60
+ "txErrors": 0
61
+ }
62
+ ]
63
+ },
64
+ "fs": {
65
+ "time": "2018-11-29T20:28:18Z",
66
+ "availableBytes": 105049530368,
67
+ "capacityBytes": 128767627264,
68
+ "usedBytes": 18118287360,
69
+ "inodesFree": 32719954,
70
+ "inodes": 33554432,
71
+ "inodesUsed": 834478
72
+ },
73
+ "runtime": {
74
+ "imageFs": {
75
+ "time": "2018-11-29T20:28:18Z",
76
+ "availableBytes": 105049530368,
77
+ "capacityBytes": 128767627264,
78
+ "usedBytes": 13371462747,
79
+ "inodesFree": 32719954,
80
+ "inodes": 33554432,
81
+ "inodesUsed": 834478
82
+ }
83
+ },
84
+ "rlimit": {
85
+ "time": "2018-11-29T20:28:27Z",
86
+ "maxpid": 32768,
87
+ "curproc": 361
88
+ }
89
+ },
90
+ "pods": [
91
+ {
92
+ "podRef": {
93
+ "name": "new-metrics-test-final-splunk-kubernetes-metrics-fgszl",
94
+ "namespace": "default",
95
+ "uid": "451cc186-f29b-11e8-afef-02dd29648076"
96
+ },
97
+ "startTime": "2018-11-27T23:22:13Z",
98
+ "containers": [
99
+ {
100
+ "name": "fluentd",
101
+ "startTime": "2018-11-27T23:22:14Z",
102
+ "cpu": {
103
+ "time": "2018-11-29T20:28:26Z",
104
+ "usageNanoCores": 3320109,
105
+ "usageCoreNanoSeconds": 515926624610
106
+ },
107
+ "memory": {
108
+ "time": "2018-11-29T20:28:26Z",
109
+ "availableBytes": 212828160,
110
+ "usageBytes": 111005696,
111
+ "workingSetBytes": 101744640,
112
+ "rssBytes": 92151808,
113
+ "pageFaults": 554278,
114
+ "majorPageFaults": 102
115
+ },
116
+ "rootfs": {
117
+ "time": "2018-11-29T20:28:26Z",
118
+ "availableBytes": 105049530368,
119
+ "capacityBytes": 128767627264,
120
+ "usedBytes": 417792,
121
+ "inodesFree": 32719954,
122
+ "inodes": 33554432,
123
+ "inodesUsed": 40
124
+ },
125
+ "logs": {
126
+ "time": "2018-11-29T20:28:26Z",
127
+ "availableBytes": 105049530368,
128
+ "capacityBytes": 128767627264,
129
+ "usedBytes": 4206592,
130
+ "inodesFree": 32719954,
131
+ "inodes": 33554432,
132
+ "inodesUsed": 834478
133
+ },
134
+ "userDefinedMetrics": null
135
+ }
136
+ ],
137
+ "cpu": {
138
+ "time": "2018-11-29T20:28:13Z",
139
+ "usageNanoCores": 2843325,
140
+ "usageCoreNanoSeconds": 515883732499
141
+ },
142
+ "memory": {
143
+ "time": "2018-11-29T20:28:13Z",
144
+ "availableBytes": 212996096,
145
+ "usageBytes": 110837760,
146
+ "workingSetBytes": 101576704,
147
+ "rssBytes": 92041216,
148
+ "pageFaults": 0,
149
+ "majorPageFaults": 0
150
+ },
151
+ "network": {
152
+ "time": "2018-11-29T20:28:13Z",
153
+ "name": "eth0",
154
+ "rxBytes": 249934243,
155
+ "rxErrors": 0,
156
+ "txBytes": 1730987782,
157
+ "txErrors": 0,
158
+ "interfaces": [
159
+ {
160
+ "name": "eth0",
161
+ "rxBytes": 249934243,
162
+ "rxErrors": 0,
163
+ "txBytes": 1730987782,
164
+ "txErrors": 0
165
+ }
166
+ ]
167
+ },
168
+ "volume": [
169
+ {
170
+ "time": "2018-11-27T23:22:41Z",
171
+ "availableBytes": 2073206784,
172
+ "capacityBytes": 2073219072,
173
+ "usedBytes": 12288,
174
+ "inodesFree": 506148,
175
+ "inodes": 506157,
176
+ "inodesUsed": 9,
177
+ "name": "new-metrics-test-final-splunk-kubernetes-metrics-token-kd6wg"
178
+ },
179
+ {
180
+ "time": "2018-11-27T23:22:41Z",
181
+ "availableBytes": 2073214976,
182
+ "capacityBytes": 2073219072,
183
+ "usedBytes": 4096,
184
+ "inodesFree": 506152,
185
+ "inodes": 506157,
186
+ "inodesUsed": 5,
187
+ "name": "secrets"
188
+ }
189
+ ],
190
+ "ephemeral-storage": {
191
+ "time": "2018-11-29T20:28:26Z",
192
+ "availableBytes": 105049530368,
193
+ "capacityBytes": 128767627264,
194
+ "usedBytes": 4624384,
195
+ "inodesFree": 32719954,
196
+ "inodes": 33554432,
197
+ "inodesUsed": 40
198
+ }
199
+ },
200
+ {
201
+ "podRef": {
202
+ "name": "metrics-server-85988668bd-wd877",
203
+ "namespace": "kube-system",
204
+ "uid": "70084e01-e20d-11e8-afef-02dd29648076"
205
+ },
206
+ "startTime": "2018-11-06T21:46:38Z",
207
+ "containers": [
208
+ {
209
+ "name": "metrics-server",
210
+ "startTime": "2018-11-06T21:46:40Z",
211
+ "cpu": {
212
+ "time": "2018-11-29T20:28:19Z",
213
+ "usageNanoCores": 636078,
214
+ "usageCoreNanoSeconds": 1300872412300
215
+ },
216
+ "memory": {
217
+ "time": "2018-11-29T20:28:19Z",
218
+ "usageBytes": 17072128,
219
+ "workingSetBytes": 14479360,
220
+ "rssBytes": 14180352,
221
+ "pageFaults": 33613,
222
+ "majorPageFaults": 75
223
+ },
224
+ "rootfs": {
225
+ "time": "2018-11-29T20:28:19Z",
226
+ "availableBytes": 105049530368,
227
+ "capacityBytes": 128767627264,
228
+ "usedBytes": 73728,
229
+ "inodesFree": 32719954,
230
+ "inodes": 33554432,
231
+ "inodesUsed": 24
232
+ },
233
+ "logs": {
234
+ "time": "2018-11-29T20:28:19Z",
235
+ "availableBytes": 105049530368,
236
+ "capacityBytes": 128767627264,
237
+ "usedBytes": 36864,
238
+ "inodesFree": 32719954,
239
+ "inodes": 33554432,
240
+ "inodesUsed": 834478
241
+ },
242
+ "userDefinedMetrics": null
243
+ }
244
+ ],
245
+ "cpu": {
246
+ "time": "2018-11-29T20:28:13Z",
247
+ "usageNanoCores": 467788,
248
+ "usageCoreNanoSeconds": 1300872926156
249
+ },
250
+ "memory": {
251
+ "time": "2018-11-29T20:28:13Z",
252
+ "usageBytes": 17141760,
253
+ "workingSetBytes": 14520320,
254
+ "rssBytes": 14221312,
255
+ "pageFaults": 0,
256
+ "majorPageFaults": 0
257
+ },
258
+ "network": {
259
+ "time": "2018-11-29T20:28:13Z",
260
+ "name": "eth0",
261
+ "rxBytes": 5014370053,
262
+ "rxErrors": 0,
263
+ "txBytes": 411743448,
264
+ "txErrors": 0,
265
+ "interfaces": [
266
+ {
267
+ "name": "eth0",
268
+ "rxBytes": 5014370053,
269
+ "rxErrors": 0,
270
+ "txBytes": 411743448,
271
+ "txErrors": 0
272
+ }
273
+ ]
274
+ },
275
+ "volume": [
276
+ {
277
+ "time": "2018-11-29T20:28:10Z",
278
+ "availableBytes": 105049542656,
279
+ "capacityBytes": 128767627264,
280
+ "usedBytes": 20480,
281
+ "inodesFree": 32719954,
282
+ "inodes": 33554432,
283
+ "inodesUsed": 5,
284
+ "name": "tmp-dir"
285
+ },
286
+ {
287
+ "time": "2018-11-06T21:47:34Z",
288
+ "availableBytes": 2073206784,
289
+ "capacityBytes": 2073219072,
290
+ "usedBytes": 12288,
291
+ "inodesFree": 506148,
292
+ "inodes": 506157,
293
+ "inodesUsed": 9,
294
+ "name": "metrics-server-token-7zdj2"
295
+ }
296
+ ],
297
+ "ephemeral-storage": {
298
+ "time": "2018-11-29T20:28:19Z",
299
+ "availableBytes": 105049530368,
300
+ "capacityBytes": 128767627264,
301
+ "usedBytes": 131072,
302
+ "inodesFree": 32719954,
303
+ "inodes": 33554432,
304
+ "inodesUsed": 29
305
+ }
306
+ },
307
+ {
308
+ "podRef": {
309
+ "name": "kube-dns-autoscaler-6874c546dd-srgj8",
310
+ "namespace": "kube-system",
311
+ "uid": "3d660ba3-dedb-11e8-afef-02dd29648076"
312
+ },
313
+ "startTime": "2018-11-02T20:11:47Z",
314
+ "containers": [
315
+ {
316
+ "name": "autoscaler",
317
+ "startTime": "2018-11-02T20:11:50Z",
318
+ "cpu": {
319
+ "time": "2018-11-29T20:28:19Z",
320
+ "usageNanoCores": 158650,
321
+ "usageCoreNanoSeconds": 405076905896
322
+ },
323
+ "memory": {
324
+ "time": "2018-11-29T20:28:19Z",
325
+ "usageBytes": 11014144,
326
+ "workingSetBytes": 8523776,
327
+ "rssBytes": 8056832,
328
+ "pageFaults": 29505,
329
+ "majorPageFaults": 41
330
+ },
331
+ "rootfs": {
332
+ "time": "2018-11-29T20:28:19Z",
333
+ "availableBytes": 105049530368,
334
+ "capacityBytes": 128767627264,
335
+ "usedBytes": 32768,
336
+ "inodesFree": 32719954,
337
+ "inodes": 33554432,
338
+ "inodesUsed": 14
339
+ },
340
+ "logs": {
341
+ "time": "2018-11-29T20:28:19Z",
342
+ "availableBytes": 105049530368,
343
+ "capacityBytes": 128767627264,
344
+ "usedBytes": 24576,
345
+ "inodesFree": 32719954,
346
+ "inodes": 33554432,
347
+ "inodesUsed": 834478
348
+ },
349
+ "userDefinedMetrics": null
350
+ }
351
+ ],
352
+ "cpu": {
353
+ "time": "2018-11-29T20:28:23Z",
354
+ "usageNanoCores": 137190,
355
+ "usageCoreNanoSeconds": 405082841636
356
+ },
357
+ "memory": {
358
+ "time": "2018-11-29T20:28:23Z",
359
+ "usageBytes": 11055104,
360
+ "workingSetBytes": 8564736,
361
+ "rssBytes": 8097792,
362
+ "pageFaults": 0,
363
+ "majorPageFaults": 0
364
+ },
365
+ "network": {
366
+ "time": "2018-11-29T20:28:11Z",
367
+ "name": "eth0",
368
+ "rxBytes": 2705829253,
369
+ "rxErrors": 0,
370
+ "txBytes": 158139864,
371
+ "txErrors": 0,
372
+ "interfaces": [
373
+ {
374
+ "name": "eth0",
375
+ "rxBytes": 2705829253,
376
+ "rxErrors": 0,
377
+ "txBytes": 158139864,
378
+ "txErrors": 0
379
+ }
380
+ ]
381
+ },
382
+ "volume": [
383
+ {
384
+ "time": "2018-11-02T20:12:33Z",
385
+ "availableBytes": 2073206784,
386
+ "capacityBytes": 2073219072,
387
+ "usedBytes": 12288,
388
+ "inodesFree": 506148,
389
+ "inodes": 506157,
390
+ "inodesUsed": 9,
391
+ "name": "kube-dns-autoscaler-token-57swx"
392
+ }
393
+ ],
394
+ "ephemeral-storage": {
395
+ "time": "2018-11-29T20:28:19Z",
396
+ "availableBytes": 105049530368,
397
+ "capacityBytes": 128767627264,
398
+ "usedBytes": 57344,
399
+ "inodesFree": 32719954,
400
+ "inodes": 33554432,
401
+ "inodesUsed": 14
402
+ }
403
+ },
404
+ {
405
+ "podRef": {
406
+ "name": "kube-dns-5fbcb4d67b-974g9",
407
+ "namespace": "kube-system",
408
+ "uid": "8886574c-dedb-11e8-afef-02dd29648076"
409
+ },
410
+ "startTime": "2018-11-02T20:11:50Z",
411
+ "containers": [
412
+ {
413
+ "name": "kubedns",
414
+ "startTime": "2018-11-02T20:11:53Z",
415
+ "cpu": {
416
+ "time": "2018-11-29T20:28:19Z",
417
+ "usageNanoCores": 415713,
418
+ "usageCoreNanoSeconds": 1066077054451
419
+ },
420
+ "memory": {
421
+ "time": "2018-11-29T20:28:19Z",
422
+ "availableBytes": 169639936,
423
+ "usageBytes": 10153984,
424
+ "workingSetBytes": 8617984,
425
+ "rssBytes": 8040448,
426
+ "pageFaults": 30082,
427
+ "majorPageFaults": 39
428
+ },
429
+ "rootfs": {
430
+ "time": "2018-11-29T20:28:19Z",
431
+ "availableBytes": 105049530368,
432
+ "capacityBytes": 128767627264,
433
+ "usedBytes": 40960,
434
+ "inodesFree": 32719954,
435
+ "inodes": 33554432,
436
+ "inodesUsed": 16
437
+ },
438
+ "logs": {
439
+ "time": "2018-11-29T20:28:19Z",
440
+ "availableBytes": 105049530368,
441
+ "capacityBytes": 128767627264,
442
+ "usedBytes": 28672,
443
+ "inodesFree": 32719954,
444
+ "inodes": 33554432,
445
+ "inodesUsed": 834478
446
+ },
447
+ "userDefinedMetrics": null
448
+ },
449
+ {
450
+ "name": "dnsmasq",
451
+ "startTime": "2018-11-02T20:11:55Z",
452
+ "cpu": {
453
+ "time": "2018-11-29T20:28:12Z",
454
+ "usageNanoCores": 174613,
455
+ "usageCoreNanoSeconds": 285726268724
456
+ },
457
+ "memory": {
458
+ "time": "2018-11-29T20:28:12Z",
459
+ "usageBytes": 6283264,
460
+ "workingSetBytes": 5705728,
461
+ "rssBytes": 5652480,
462
+ "pageFaults": 11778,
463
+ "majorPageFaults": 11
464
+ },
465
+ "rootfs": {
466
+ "time": "2018-11-29T20:28:12Z",
467
+ "availableBytes": 105049530368,
468
+ "capacityBytes": 128767627264,
469
+ "usedBytes": 45056,
470
+ "inodesFree": 32719954,
471
+ "inodes": 33554432,
472
+ "inodesUsed": 17
473
+ },
474
+ "logs": {
475
+ "time": "2018-11-29T20:28:12Z",
476
+ "availableBytes": 105049530368,
477
+ "capacityBytes": 128767627264,
478
+ "usedBytes": 24576,
479
+ "inodesFree": 32719954,
480
+ "inodes": 33554432,
481
+ "inodesUsed": 834478
482
+ },
483
+ "userDefinedMetrics": null
484
+ },
485
+ {
486
+ "name": "sidecar",
487
+ "startTime": "2018-11-02T20:11:57Z",
488
+ "cpu": {
489
+ "time": "2018-11-29T20:28:26Z",
490
+ "usageNanoCores": 844402,
491
+ "usageCoreNanoSeconds": 1628526755668
492
+ },
493
+ "memory": {
494
+ "time": "2018-11-29T20:28:26Z",
495
+ "usageBytes": 13164544,
496
+ "workingSetBytes": 11993088,
497
+ "rssBytes": 11829248,
498
+ "pageFaults": 25105,
499
+ "majorPageFaults": 23
500
+ },
501
+ "rootfs": {
502
+ "time": "2018-11-29T20:28:26Z",
503
+ "availableBytes": 105049530368,
504
+ "capacityBytes": 128767627264,
505
+ "usedBytes": 36864,
506
+ "inodesFree": 32719954,
507
+ "inodes": 33554432,
508
+ "inodesUsed": 15
509
+ },
510
+ "logs": {
511
+ "time": "2018-11-29T20:28:26Z",
512
+ "availableBytes": 105049530368,
513
+ "capacityBytes": 128767627264,
514
+ "usedBytes": 24576,
515
+ "inodesFree": 32719954,
516
+ "inodes": 33554432,
517
+ "inodesUsed": 834478
518
+ },
519
+ "userDefinedMetrics": null
520
+ }
521
+ ],
522
+ "cpu": {
523
+ "time": "2018-11-29T20:28:13Z",
524
+ "usageNanoCores": 1338568,
525
+ "usageCoreNanoSeconds": 2980320410941
526
+ },
527
+ "memory": {
528
+ "time": "2018-11-29T20:28:13Z",
529
+ "usageBytes": 29642752,
530
+ "workingSetBytes": 26357760,
531
+ "rssBytes": 25563136,
532
+ "pageFaults": 0,
533
+ "majorPageFaults": 0
534
+ },
535
+ "network": {
536
+ "time": "2018-11-29T20:28:22Z",
537
+ "name": "eth0",
538
+ "rxBytes": 1772265414,
539
+ "rxErrors": 0,
540
+ "txBytes": 1077913630,
541
+ "txErrors": 0,
542
+ "interfaces": [
543
+ {
544
+ "name": "eth0",
545
+ "rxBytes": 1772265414,
546
+ "rxErrors": 0,
547
+ "txBytes": 1077913630,
548
+ "txErrors": 0
549
+ }
550
+ ]
551
+ },
552
+ "volume": [
553
+ {
554
+ "time": "2018-11-02T20:12:33Z",
555
+ "availableBytes": 2073206784,
556
+ "capacityBytes": 2073219072,
557
+ "usedBytes": 12288,
558
+ "inodesFree": 506148,
559
+ "inodes": 506157,
560
+ "inodesUsed": 9,
561
+ "name": "kube-dns-token-k9lxx"
562
+ }
563
+ ],
564
+ "ephemeral-storage": {
565
+ "time": "2018-11-29T20:28:26Z",
566
+ "availableBytes": 105049530368,
567
+ "capacityBytes": 128767627264,
568
+ "usedBytes": 200704,
569
+ "inodesFree": 32719954,
570
+ "inodes": 33554432,
571
+ "inodesUsed": 48
572
+ }
573
+ },
574
+ {
575
+ "podRef": {
576
+ "name": "kube-proxy-generics-aws-node-one",
577
+ "namespace": "kube-system",
578
+ "uid": "0353d50e30294e7156bc66c4c7b10182"
579
+ },
580
+ "startTime": "2018-11-02T20:08:39Z",
581
+ "containers": [
582
+ {
583
+ "name": "kube-proxy",
584
+ "startTime": "2018-11-02T20:08:45Z",
585
+ "cpu": {
586
+ "time": "2018-11-29T20:28:20Z",
587
+ "usageNanoCores": 1647587,
588
+ "usageCoreNanoSeconds": 5534138219491
589
+ },
590
+ "memory": {
591
+ "time": "2018-11-29T20:28:20Z",
592
+ "usageBytes": 15831040,
593
+ "workingSetBytes": 13234176,
594
+ "rssBytes": 12115968,
595
+ "pageFaults": 118753432,
596
+ "majorPageFaults": 106
597
+ },
598
+ "rootfs": {
599
+ "time": "2018-11-29T20:28:20Z",
600
+ "availableBytes": 105049530368,
601
+ "capacityBytes": 128767627264,
602
+ "usedBytes": 53248,
603
+ "inodesFree": 32719954,
604
+ "inodes": 33554432,
605
+ "inodesUsed": 23
606
+ },
607
+ "logs": {
608
+ "time": "2018-11-29T20:28:20Z",
609
+ "availableBytes": 105049530368,
610
+ "capacityBytes": 128767627264,
611
+ "usedBytes": 131072,
612
+ "inodesFree": 32719954,
613
+ "inodes": 33554432,
614
+ "inodesUsed": 834478
615
+ },
616
+ "userDefinedMetrics": null
617
+ }
618
+ ],
619
+ "cpu": {
620
+ "time": "2018-11-29T20:28:20Z",
621
+ "usageNanoCores": 2631740,
622
+ "usageCoreNanoSeconds": 5534141360094
623
+ },
624
+ "memory": {
625
+ "time": "2018-11-29T20:28:20Z",
626
+ "usageBytes": 15884288,
627
+ "workingSetBytes": 13287424,
628
+ "rssBytes": 12161024,
629
+ "pageFaults": 0,
630
+ "majorPageFaults": 0
631
+ },
632
+ "network": {
633
+ "time": "2018-11-29T20:28:11Z",
634
+ "name": "eth0",
635
+ "rxBytes": 18640623960,
636
+ "rxErrors": 0,
637
+ "txBytes": 5043663125,
638
+ "txErrors": 0,
639
+ "interfaces": [
640
+ {
641
+ "name": "cbr0",
642
+ "rxBytes": 4072346219,
643
+ "rxErrors": 0,
644
+ "txBytes": 9945379798,
645
+ "txErrors": 0
646
+ },
647
+ {
648
+ "name": "eth0",
649
+ "rxBytes": 18640623960,
650
+ "rxErrors": 0,
651
+ "txBytes": 5043663125,
652
+ "txErrors": 0
653
+ }
654
+ ]
655
+ },
656
+ "ephemeral-storage": {
657
+ "time": "2018-11-29T20:28:20Z",
658
+ "availableBytes": 105049530368,
659
+ "capacityBytes": 128767627264,
660
+ "usedBytes": 184320,
661
+ "inodesFree": 32719954,
662
+ "inodes": 33554432,
663
+ "inodesUsed": 23
664
+ }
665
+ }
666
+ ]
667
+ }