fluent-plugin-kubernetes-metrics 1.1.2 → 1.1.7
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/Gemfile.lock +57 -50
- data/README.md +0 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/fluent-plugin-kubernetes-metrics.gemspec +14 -12
- data/lib/fluent/plugin/in_kubernetes_metrics.rb +3 -3
- data/test/helper.rb +2 -2
- metadata +19 -54
- data/.circleci/build_and_push.sh +0 -11
- data/.circleci/build_and_push_to_dockerhub.sh +0 -12
- data/.circleci/build_and_push_to_github_release.sh +0 -11
- data/.circleci/check_version_trigger_release.sh +0 -26
- data/.circleci/config.yml +0 -133
- data/.circleci/install_dep.sh +0 -5
- data/.circleci/push_gem.sh +0 -8
- data/.circleci/push_gems_to_rubygems.sh +0 -7
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -29
- data/.github/ISSUE_TEMPLATE/enhancement_request.md +0 -14
- data/.github/ISSUE_TEMPLATE/failing_test.md +0 -18
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -23
- data/.gitignore +0 -5
- data/CLA.md +0 -18
- data/CONTRIBUTING.md +0 -20
- data/CONTRIBUTORS.md +0 -15
- data/docker/CONTRIBUTING.md +0 -20
- data/docker/Dockerfile +0 -52
- data/docker/FLUENTD_HEC_GEM_VERSION +0 -1
- data/docker/LICENSE +0 -201
- data/docker/README.md +0 -4
- data/docker/entrypoint.sh +0 -27
- data/examples/daemonset.yaml +0 -114
- data/test/api.json +0 -8
- data/test/metrics_cadvisor.txt +0 -1715
- data/test/stats.json +0 -3536
- data/test/unit.json +0 -199
- data/test/unit_without_time.json +0 -178
- data/test/v1.json +0 -488
data/test/unit.json
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"node": {
|
|
3
|
-
"nodeName": "ip-XXX-XX-XX-XXX.us-west-2.compute.internal",
|
|
4
|
-
"systemContainers": [
|
|
5
|
-
{
|
|
6
|
-
"name": "pods",
|
|
7
|
-
"startTime": "2018-10-17T17:45:10Z",
|
|
8
|
-
"cpu": {
|
|
9
|
-
"time": "2018-10-17T18:15:21Z",
|
|
10
|
-
"usageNanoCores": 69568807,
|
|
11
|
-
"usageCoreNanoSeconds": 134724371173
|
|
12
|
-
},
|
|
13
|
-
"memory": {
|
|
14
|
-
"time": "2018-10-17T18:15:21Z",
|
|
15
|
-
"availableBytes": 3570184192,
|
|
16
|
-
"usageBytes": 379932672,
|
|
17
|
-
"workingSetBytes": 379658240,
|
|
18
|
-
"rssBytes": 369627136,
|
|
19
|
-
"pageFaults": 0,
|
|
20
|
-
"majorPageFaults": 0
|
|
21
|
-
},
|
|
22
|
-
"userDefinedMetrics": null
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"startTime": "2018-09-19T06:40:05Z",
|
|
26
|
-
"cpu": {
|
|
27
|
-
"time": "2018-09-27T22:09:59Z",
|
|
28
|
-
"usageNanoCores": 71501818,
|
|
29
|
-
"usageCoreNanoSeconds": 68824254091816
|
|
30
|
-
},
|
|
31
|
-
"memory": {
|
|
32
|
-
"time": "2018-09-27T22:09:59Z",
|
|
33
|
-
"availableBytes": 30164504576,
|
|
34
|
-
"usageBytes": 10132713472,
|
|
35
|
-
"workingSetBytes": 3576983552,
|
|
36
|
-
"rssBytes": 517582848,
|
|
37
|
-
"pageFaults": 498847843,
|
|
38
|
-
"majorPageFaults": 1999
|
|
39
|
-
},
|
|
40
|
-
"network": {
|
|
41
|
-
"time": "2018-09-27T22:09:59Z",
|
|
42
|
-
"name": "eth0",
|
|
43
|
-
"rxBytes": 8480164820,
|
|
44
|
-
"rxErrors": 0,
|
|
45
|
-
"txBytes": 5416875722,
|
|
46
|
-
"txErrors": 0,
|
|
47
|
-
"interfaces": [
|
|
48
|
-
{
|
|
49
|
-
"name": "cbr0",
|
|
50
|
-
"rxBytes": 4677862821,
|
|
51
|
-
"rxErrors": 0,
|
|
52
|
-
"txBytes": 5067375443,
|
|
53
|
-
"txErrors": 0
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "eth0",
|
|
57
|
-
"rxBytes": 8480164820,
|
|
58
|
-
"rxErrors": 0,
|
|
59
|
-
"txBytes": 5416875722,
|
|
60
|
-
"txErrors": 0
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"fs": {
|
|
65
|
-
"time": "2018-09-27T22:09:59Z",
|
|
66
|
-
"availableBytes": 112741339136,
|
|
67
|
-
"capacityBytes": 128701009920,
|
|
68
|
-
"usedBytes": 10359861248,
|
|
69
|
-
"inodesFree": 33124287,
|
|
70
|
-
"inodes": 33554432,
|
|
71
|
-
"inodesUsed": 430145
|
|
72
|
-
},
|
|
73
|
-
"rlimit": {
|
|
74
|
-
"time": "2018-10-17T18:15:25Z",
|
|
75
|
-
"maxpid": 32768,
|
|
76
|
-
"curproc": 389
|
|
77
|
-
},
|
|
78
|
-
"runtime": {
|
|
79
|
-
"imageFs": {
|
|
80
|
-
"time": "2018-09-27T22:09:59Z",
|
|
81
|
-
"availableBytes": 112741339136,
|
|
82
|
-
"capacityBytes": 128701009920,
|
|
83
|
-
"usedBytes": 6439798904,
|
|
84
|
-
"inodesFree": 33124287,
|
|
85
|
-
"inodes": 33554432,
|
|
86
|
-
"inodesUsed": 430145
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"pods": [
|
|
91
|
-
{
|
|
92
|
-
"podRef": {
|
|
93
|
-
"name": "kube-system-logging-splunk-kubernetes-logging-4kbsb",
|
|
94
|
-
"namespace": "generic_namespace",
|
|
95
|
-
"uid": "6a83cdc1-c055-11e8-bbee-02dfc7c54d24"
|
|
96
|
-
},
|
|
97
|
-
"startTime": "2018-09-24T23:56:13Z",
|
|
98
|
-
"containers": [
|
|
99
|
-
{
|
|
100
|
-
"name": "splunk-fluentd-k8s-logs",
|
|
101
|
-
"startTime": "2018-09-24T23:56:14Z",
|
|
102
|
-
"cpu": {
|
|
103
|
-
"time": "2018-09-27T22:10:03Z",
|
|
104
|
-
"usageNanoCores": 3117227,
|
|
105
|
-
"usageCoreNanoSeconds": 856491349907
|
|
106
|
-
},
|
|
107
|
-
"memory": {
|
|
108
|
-
"time": "2018-09-27T22:10:03Z",
|
|
109
|
-
"usageBytes": 71749632,
|
|
110
|
-
"workingSetBytes": 71749632,
|
|
111
|
-
"rssBytes": 71430144,
|
|
112
|
-
"pageFaults": 204802,
|
|
113
|
-
"majorPageFaults": 0
|
|
114
|
-
},
|
|
115
|
-
"rootfs": {
|
|
116
|
-
"time": "2018-09-27T22:10:03Z",
|
|
117
|
-
"availableBytes": 112741339136,
|
|
118
|
-
"capacityBytes": 128701009920,
|
|
119
|
-
"usedBytes": 263282688,
|
|
120
|
-
"inodesFree": 33124287,
|
|
121
|
-
"inodes": 33554432,
|
|
122
|
-
"inodesUsed": 32
|
|
123
|
-
},
|
|
124
|
-
"logs": {
|
|
125
|
-
"time": "2018-09-27T22:10:03Z",
|
|
126
|
-
"availableBytes": 112741339136,
|
|
127
|
-
"capacityBytes": 128701009920,
|
|
128
|
-
"usedBytes": 61440,
|
|
129
|
-
"inodesFree": 33124287,
|
|
130
|
-
"inodes": 33554432,
|
|
131
|
-
"inodesUsed": 430145
|
|
132
|
-
},
|
|
133
|
-
"userDefinedMetrics": null
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
"cpu": {
|
|
137
|
-
"time": "2018-09-27T22:10:02Z",
|
|
138
|
-
"usageNanoCores": 3126718,
|
|
139
|
-
"usageCoreNanoSeconds": 856492340119
|
|
140
|
-
},
|
|
141
|
-
"memory": {
|
|
142
|
-
"time": "2018-09-27T22:10:02Z",
|
|
143
|
-
"usageBytes": 71917568,
|
|
144
|
-
"workingSetBytes": 71917568,
|
|
145
|
-
"rssBytes": 71471104,
|
|
146
|
-
"pageFaults": 0,
|
|
147
|
-
"majorPageFaults": 0
|
|
148
|
-
},
|
|
149
|
-
"network": {
|
|
150
|
-
"time": "2018-09-27T22:10:02Z",
|
|
151
|
-
"name": "eth0",
|
|
152
|
-
"rxBytes": 22482186,
|
|
153
|
-
"rxErrors": 0,
|
|
154
|
-
"txBytes": 357450663,
|
|
155
|
-
"txErrors": 0,
|
|
156
|
-
"interfaces": [
|
|
157
|
-
{
|
|
158
|
-
"name": "eth0",
|
|
159
|
-
"rxBytes": 22482186,
|
|
160
|
-
"rxErrors": 0,
|
|
161
|
-
"txBytes": 357450663,
|
|
162
|
-
"txErrors": 0
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
|
-
"volume": [
|
|
167
|
-
{
|
|
168
|
-
"time": "2018-09-24T23:57:04Z",
|
|
169
|
-
"availableBytes": 16870731776,
|
|
170
|
-
"capacityBytes": 16870744064,
|
|
171
|
-
"usedBytes": 12288,
|
|
172
|
-
"inodesFree": 4118825,
|
|
173
|
-
"inodes": 4118834,
|
|
174
|
-
"inodesUsed": 9,
|
|
175
|
-
"name": "default-token-phqbm"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"time": "2018-09-24T23:57:05Z",
|
|
179
|
-
"availableBytes": 16870739968,
|
|
180
|
-
"capacityBytes": 16870744064,
|
|
181
|
-
"usedBytes": 4096,
|
|
182
|
-
"inodesFree": 4118829,
|
|
183
|
-
"inodes": 4118834,
|
|
184
|
-
"inodesUsed": 5,
|
|
185
|
-
"name": "secrets"
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
"ephemeral-storage": {
|
|
189
|
-
"time": "2018-09-27T22:10:03Z",
|
|
190
|
-
"availableBytes": 112741339136,
|
|
191
|
-
"capacityBytes": 128701009920,
|
|
192
|
-
"usedBytes": 263344128,
|
|
193
|
-
"inodesFree": 33124287,
|
|
194
|
-
"inodes": 33554432,
|
|
195
|
-
"inodesUsed": 32
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
]
|
|
199
|
-
}
|
data/test/unit_without_time.json
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"node": {
|
|
3
|
-
"nodeName": "ip-XXX-XX-XX-XXX.us-west-2.compute.internal",
|
|
4
|
-
"systemContainers": [
|
|
5
|
-
{
|
|
6
|
-
"name": "pods",
|
|
7
|
-
"cpu": {
|
|
8
|
-
"usageNanoCores": 69568807,
|
|
9
|
-
"usageCoreNanoSeconds": 134724371173
|
|
10
|
-
},
|
|
11
|
-
"memory": {
|
|
12
|
-
"availableBytes": 3570184192,
|
|
13
|
-
"usageBytes": 379932672,
|
|
14
|
-
"workingSetBytes": 379658240,
|
|
15
|
-
"rssBytes": 369627136,
|
|
16
|
-
"pageFaults": 0,
|
|
17
|
-
"majorPageFaults": 0
|
|
18
|
-
},
|
|
19
|
-
"userDefinedMetrics": null
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"cpu": {
|
|
23
|
-
"usageNanoCores": 71501818,
|
|
24
|
-
"usageCoreNanoSeconds": 68824254091816
|
|
25
|
-
},
|
|
26
|
-
"memory": {
|
|
27
|
-
"availableBytes": 30164504576,
|
|
28
|
-
"usageBytes": 10132713472,
|
|
29
|
-
"workingSetBytes": 3576983552,
|
|
30
|
-
"rssBytes": 517582848,
|
|
31
|
-
"pageFaults": 498847843,
|
|
32
|
-
"majorPageFaults": 1999
|
|
33
|
-
},
|
|
34
|
-
"network": {
|
|
35
|
-
"name": "eth0",
|
|
36
|
-
"rxBytes": 8480164820,
|
|
37
|
-
"rxErrors": 0,
|
|
38
|
-
"txBytes": 5416875722,
|
|
39
|
-
"txErrors": 0,
|
|
40
|
-
"interfaces": [
|
|
41
|
-
{
|
|
42
|
-
"name": "cbr0",
|
|
43
|
-
"rxBytes": 4677862821,
|
|
44
|
-
"rxErrors": 0,
|
|
45
|
-
"txBytes": 5067375443,
|
|
46
|
-
"txErrors": 0
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "eth0",
|
|
50
|
-
"rxBytes": 8480164820,
|
|
51
|
-
"rxErrors": 0,
|
|
52
|
-
"txBytes": 5416875722,
|
|
53
|
-
"txErrors": 0
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
"fs": {
|
|
58
|
-
"availableBytes": 112741339136,
|
|
59
|
-
"capacityBytes": 128701009920,
|
|
60
|
-
"usedBytes": 10359861248,
|
|
61
|
-
"inodesFree": 33124287,
|
|
62
|
-
"inodes": 33554432,
|
|
63
|
-
"inodesUsed": 430145
|
|
64
|
-
},
|
|
65
|
-
"rlimit": {
|
|
66
|
-
"maxpid": 32768,
|
|
67
|
-
"curproc": 389
|
|
68
|
-
},
|
|
69
|
-
"runtime": {
|
|
70
|
-
"imageFs": {
|
|
71
|
-
"availableBytes": 112741339136,
|
|
72
|
-
"capacityBytes": 128701009920,
|
|
73
|
-
"usedBytes": 6439798904,
|
|
74
|
-
"inodesFree": 33124287,
|
|
75
|
-
"inodes": 33554432,
|
|
76
|
-
"inodesUsed": 430145
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"pods": [
|
|
81
|
-
{
|
|
82
|
-
"podRef": {
|
|
83
|
-
"name": "kube-system-logging-splunk-kubernetes-logging-4kbsb",
|
|
84
|
-
"namespace": "generic_namespace",
|
|
85
|
-
"uid": "6a83cdc1-c055-11e8-bbee-02dfc7c54d24"
|
|
86
|
-
},
|
|
87
|
-
"startTime": "2018-09-24T23:56:13Z",
|
|
88
|
-
"containers": [
|
|
89
|
-
{
|
|
90
|
-
"name": "splunk-fluentd-k8s-logs",
|
|
91
|
-
"cpu": {
|
|
92
|
-
"usageNanoCores": 3117227,
|
|
93
|
-
"usageCoreNanoSeconds": 856491349907
|
|
94
|
-
},
|
|
95
|
-
"memory": {
|
|
96
|
-
"usageBytes": 71749632,
|
|
97
|
-
"workingSetBytes": 71749632,
|
|
98
|
-
"rssBytes": 71430144,
|
|
99
|
-
"pageFaults": 204802,
|
|
100
|
-
"majorPageFaults": 0
|
|
101
|
-
},
|
|
102
|
-
"rootfs": {
|
|
103
|
-
"availableBytes": 112741339136,
|
|
104
|
-
"capacityBytes": 128701009920,
|
|
105
|
-
"usedBytes": 263282688,
|
|
106
|
-
"inodesFree": 33124287,
|
|
107
|
-
"inodes": 33554432,
|
|
108
|
-
"inodesUsed": 32
|
|
109
|
-
},
|
|
110
|
-
"logs": {
|
|
111
|
-
"availableBytes": 112741339136,
|
|
112
|
-
"capacityBytes": 128701009920,
|
|
113
|
-
"usedBytes": 61440,
|
|
114
|
-
"inodesFree": 33124287,
|
|
115
|
-
"inodes": 33554432,
|
|
116
|
-
"inodesUsed": 430145
|
|
117
|
-
},
|
|
118
|
-
"userDefinedMetrics": null
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"cpu": {
|
|
122
|
-
"usageNanoCores": 3126718,
|
|
123
|
-
"usageCoreNanoSeconds": 856492340119
|
|
124
|
-
},
|
|
125
|
-
"memory": {
|
|
126
|
-
"usageBytes": 71917568,
|
|
127
|
-
"workingSetBytes": 71917568,
|
|
128
|
-
"rssBytes": 71471104,
|
|
129
|
-
"pageFaults": 0,
|
|
130
|
-
"majorPageFaults": 0
|
|
131
|
-
},
|
|
132
|
-
"network": {
|
|
133
|
-
"name": "eth0",
|
|
134
|
-
"rxBytes": 22482186,
|
|
135
|
-
"rxErrors": 0,
|
|
136
|
-
"txBytes": 357450663,
|
|
137
|
-
"txErrors": 0,
|
|
138
|
-
"interfaces": [
|
|
139
|
-
{
|
|
140
|
-
"name": "eth0",
|
|
141
|
-
"rxBytes": 22482186,
|
|
142
|
-
"rxErrors": 0,
|
|
143
|
-
"txBytes": 357450663,
|
|
144
|
-
"txErrors": 0
|
|
145
|
-
}
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
|
-
"volume": [
|
|
149
|
-
{
|
|
150
|
-
"availableBytes": 16870731776,
|
|
151
|
-
"capacityBytes": 16870744064,
|
|
152
|
-
"usedBytes": 12288,
|
|
153
|
-
"inodesFree": 4118825,
|
|
154
|
-
"inodes": 4118834,
|
|
155
|
-
"inodesUsed": 9,
|
|
156
|
-
"name": "default-token-phqbm"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"availableBytes": 16870739968,
|
|
160
|
-
"capacityBytes": 16870744064,
|
|
161
|
-
"usedBytes": 4096,
|
|
162
|
-
"inodesFree": 4118829,
|
|
163
|
-
"inodes": 4118834,
|
|
164
|
-
"inodesUsed": 5,
|
|
165
|
-
"name": "secrets"
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"ephemeral-storage": {
|
|
169
|
-
"availableBytes": 112741339136,
|
|
170
|
-
"capacityBytes": 128701009920,
|
|
171
|
-
"usedBytes": 263344128,
|
|
172
|
-
"inodesFree": 33124287,
|
|
173
|
-
"inodes": 33554432,
|
|
174
|
-
"inodesUsed": 32
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
}
|