-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replaced internal expiring cache with non expiring dictionary in memory * fixed a bug that prevented to export pod/container metrics when node/state_node metricsets were disabled (cherry picked from commit 5503761)
- Loading branch information
1 parent
95a8289
commit 166f42a
Showing
27 changed files
with
1,337 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
163 changes: 163 additions & 0 deletions
163
metricbeat/module/kubernetes/_meta/test/stats_summary_multiple_containers.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
{ | ||
"node": { | ||
"nodeName": "gke-beats-default-pool-a5b33e2e-hdww", | ||
"systemContainers": [ | ||
{ | ||
"name": "kubelet", | ||
"startTime": "2017-04-18T12:53:49Z", | ||
"cpu": { | ||
"time": "2017-04-20T08:06:46Z", | ||
"usageNanoCores": 11263994, | ||
"usageCoreNanoSeconds": 2357800908948 | ||
}, | ||
"memory": { | ||
"time": "2017-04-20T08:06:46Z", | ||
"usageBytes": 36683776, | ||
"workingSetBytes": 36495360, | ||
"rssBytes": 35512320, | ||
"pageFaults": 100835242, | ||
"majorPageFaults": 0 | ||
}, | ||
"userDefinedMetrics": null | ||
} | ||
], | ||
"startTime": "2017-04-18T12:53:49Z", | ||
"cpu": { | ||
"time": "2017-04-20T08:06:41Z", | ||
"usageNanoCores": 18691146, | ||
"usageCoreNanoSeconds": 4189523881380 | ||
}, | ||
"memory": { | ||
"time": "2017-04-20T08:06:41Z", | ||
"availableBytes": 1768316928, | ||
"usageBytes": 2764943360, | ||
"workingSetBytes": 2111090688, | ||
"rssBytes": 2150400, | ||
"pageFaults": 131567, | ||
"majorPageFaults": 103 | ||
}, | ||
"network": { | ||
"time": "2017-04-20T08:06:41Z", | ||
"rxBytes": 1115133198, | ||
"rxErrors": 0, | ||
"txBytes": 812729002, | ||
"txErrors": 0 | ||
}, | ||
"fs": { | ||
"availableBytes": 98727014400, | ||
"capacityBytes": 101258067968, | ||
"usedBytes": 2514276352, | ||
"inodesFree": 18446744073709551615, | ||
"inodes": 6258720, | ||
"inodesUsed": 138624 | ||
}, | ||
"runtime": { | ||
"imageFs": { | ||
"availableBytes": 98727014400, | ||
"capacityBytes": 101258067968, | ||
"usedBytes": 860204379, | ||
"inodesFree": 18446744073709551615, | ||
"inodes": 6258720, | ||
"inodesUsed": 138624 | ||
} | ||
} | ||
}, | ||
"pods": [ | ||
{ | ||
"podRef": { | ||
"name": "nginx-deployment-2303442956-pcqfc", | ||
"namespace": "default", | ||
"uid": "beabc196-2456-11e7-a3ad-42010a840235" | ||
}, | ||
"startTime": "2017-04-18T16:47:44Z", | ||
"containers": [ | ||
{ | ||
"name": "nginx", | ||
"startTime": "2017-04-18T16:47:44Z", | ||
"cpu": { | ||
"time": "2017-04-20T08:06:34Z", | ||
"usageNanoCores": 11263994, | ||
"usageCoreNanoSeconds": 43959424 | ||
}, | ||
"memory": { | ||
"time": "2017-04-20T08:06:34Z", | ||
"usageBytes": 1462272, | ||
"workingSetBytes": 1454080, | ||
"rssBytes": 1409024, | ||
"pageFaults": 841, | ||
"majorPageFaults": 0 | ||
}, | ||
"rootfs": { | ||
"availableBytes": 98727014400, | ||
"capacityBytes": 101258067968, | ||
"usedBytes": 61440, | ||
"inodesFree": 6120096, | ||
"inodes": 6258720, | ||
"inodesUsed": 21 | ||
}, | ||
"logs": { | ||
"availableBytes": 98727014400, | ||
"capacityBytes": 101258067968, | ||
"usedBytes": 28672, | ||
"inodesFree": 6120096, | ||
"inodes": 6258720, | ||
"inodesUsed": 138624 | ||
}, | ||
"userDefinedMetrics": null | ||
}, | ||
{ | ||
"name": "sidecar", | ||
"startTime": "2017-04-18T16:47:44Z", | ||
"cpu": { | ||
"time": "2017-04-20T08:06:34Z", | ||
"usageNanoCores": 11263994, | ||
"usageCoreNanoSeconds": 43959424 | ||
}, | ||
"memory": { | ||
"time": "2017-04-20T08:06:34Z", | ||
"usageBytes": 1462272, | ||
"workingSetBytes": 1454080, | ||
"rssBytes": 1409024, | ||
"pageFaults": 841, | ||
"majorPageFaults": 0 | ||
}, | ||
"rootfs": { | ||
"availableBytes": 98727014400, | ||
"capacityBytes": 101258067968, | ||
"usedBytes": 61440, | ||
"inodesFree": 6120096, | ||
"inodes": 6258720, | ||
"inodesUsed": 21 | ||
}, | ||
"logs": { | ||
"availableBytes": 98727014400, | ||
"capacityBytes": 101258067968, | ||
"usedBytes": 28672, | ||
"inodesFree": 6120096, | ||
"inodes": 6258720, | ||
"inodesUsed": 138624 | ||
}, | ||
"userDefinedMetrics": null | ||
} | ||
], | ||
"network": { | ||
"time": "2017-04-20T08:06:41Z", | ||
"rxBytes": 107056, | ||
"rxErrors": 0, | ||
"txBytes": 72447, | ||
"txErrors": 0 | ||
}, | ||
"volume": [ | ||
{ | ||
"availableBytes": 1939689472, | ||
"capacityBytes": 1939701760, | ||
"usedBytes": 12288, | ||
"inodesFree": 473551, | ||
"inodes": 473560, | ||
"inodesUsed": 9, | ||
"name": "default-token-sg8x5" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.