curl https://localhost:10250/stats/summary

Jmnote (토론 | 기여)님의 2019년 4월 29일 (월) 23:15 판 (→‎참고)

1 개요

$ curl https://localhost:10250/stats/summary -sk --cert /etc/kubernetes/pki/apiserver-kubelet-client.crt --key /etc/kubernetes/pki/apiserver-kubelet-client.key
{
  "node": {
   "nodeName": "k8s-agentpool1-27347916-0",
   "systemContainers": [
    {
     "name": "pods",
     "startTime": "2018-03-30T07:12:34Z",
     "cpu": {
      "time": "2018-04-02T12:46:06Z",
      "usageNanoCores": 7899242,
      "usageCoreNanoSeconds": 1229924549983
     },
     "memory": {
      "time": "2018-04-02T12:46:06Z",
      "availableBytes": 118094712832,
      "usageBytes": 171716608,
      "workingSetBytes": 171560960,
      "rssBytes": 129269760,
      "pageFaults": 0,
      "majorPageFaults": 0
     },
     "userDefinedMetrics": null
    },
    {
     "name": "kubelet",
     "startTime": "2018-04-02T06:20:17Z",
     "cpu": {
      "time": "2018-04-02T12:46:07Z",
      "usageNanoCores": 28657903,
      "usageCoreNanoSeconds": 617614332776
     },
     "memory": {
      "time": "2018-04-02T12:46:07Z",
      "usageBytes": 83517440,
      "workingSetBytes": 83288064,
      "rssBytes": 68513792,
      "pageFaults": 3879438,
      "majorPageFaults": 0
     },
     "userDefinedMetrics": null
    },
    {
     "name": "runtime",
     "startTime": "2018-03-30T07:12:34Z",
     "cpu": {
      "time": "2018-04-02T12:46:05Z",
      "usageNanoCores": 4746092,
      "usageCoreNanoSeconds": 1940213792740
     },
     "memory": {
      "time": "2018-04-02T12:46:05Z",
      "usageBytes": 1575313408,
      "workingSetBytes": 360296448,
      "rssBytes": 176521216,
      "pageFaults": 58918642,
      "majorPageFaults": 0
     },
     "userDefinedMetrics": null
    }
   ],
   "startTime": "2018-03-30T07:12:34Z",
   "cpu": {
    "time": "2018-04-02T12:46:06Z",
    "usageNanoCores": 74852623,
    "usageCoreNanoSeconds": 11928122042675
   },
   "memory": {
    "time": "2018-04-02T12:46:06Z",
    "availableBytes": 117025046528,
    "usageBytes": 3479334912,
    "workingSetBytes": 1241227264,
    "rssBytes": 603840512,
    "pageFaults": 71816,
    "majorPageFaults": 89
   },
   "network": {
    "time": "2018-04-02T12:46:06Z",
    "name": "eth0",
    "rxBytes": 7690944690,
    "rxErrors": 0,
    "txBytes": 867871242,
    "txErrors": 0,
    "interfaces": [
     {
      "name": "eth0",
      "rxBytes": 7690944690,
      "rxErrors": 0,
      "txBytes": 867871242,
      "txErrors": 0
     },
     {
      "name": "cbr0",
      "rxBytes": 77920443,
      "rxErrors": 0,
      "txBytes": 456800874,
      "txErrors": 0
     }
    ]
   },
   "fs": {
    "time": "2018-04-02T12:46:06Z",
    "availableBytes": 27561127936,
    "capacityBytes": 31158935552,
    "usedBytes": 3581030400,
    "inodesFree": 3746365,
    "inodes": 3840000,
    "inodesUsed": 93635
   },
   "runtime": {
    "imageFs": {
     "time": "2018-04-02T12:46:06Z",
     "availableBytes": 27561127936,
     "capacityBytes": 31158935552,
     "usedBytes": 1280176106,
     "inodesFree": 3746365,
     "inodes": 3840000,
     "inodesUsed": 93635
    }
   },
   "rlimit": {
    "time": "2018-04-02T12:46:15Z",
    "maxpid": 131072,
    "curproc": 1041
   }
  },
  "pods": [
   {
    "podRef": {
     "name": "nginx-768979984b-nb4fk",
     "namespace": "default",
     "uid": "c638a659-3647-11e8-8360-000d3a187d63"
    },
    "startTime": "2018-04-02T07:30:53Z",
    "containers": [
     {
      "name": "nginx",
      "startTime": "2018-04-02T07:40:25Z",
      "cpu": {
       "time": "2018-04-02T12:46:14Z",
       "usageNanoCores": 4266,
       "usageCoreNanoSeconds": 228854862
      },
      "memory": {
       "time": "2018-04-02T12:46:14Z",
       "usageBytes": 2830336,
       "workingSetBytes": 2789376,
       "rssBytes": 1425408,
       "pageFaults": 668,
       "majorPageFaults": 0
      },
      "rootfs": {
       "time": "2018-04-02T12:46:14Z",
       "availableBytes": 27561127936,
       "capacityBytes": 31158935552,
       "usedBytes": 65536,
       "inodesFree": 3746365,
       "inodes": 3840000,
       "inodesUsed": 14
      },
      "logs": {
       "time": "2018-04-02T12:46:14Z",
       "availableBytes": 27561127936,
       "capacityBytes": 31158935552,
       "usedBytes": 20480,
       "inodesFree": 3746365,
       "inodes": 3840000,
       "inodesUsed": 93635
      },
      "userDefinedMetrics": null
     }
    ],
    "cpu": {
     "time": "2018-04-02T12:46:07Z",
     "usageNanoCores": 12110,
     "usageCoreNanoSeconds": 236252462
    },
    "memory": {
     "time": "2018-04-02T12:46:07Z",
     "usageBytes": 3186688,
     "workingSetBytes": 3145728,
     "rssBytes": 1470464,
     "pageFaults": 0,
     "majorPageFaults": 0
    },
    "network": {
     "time": "2018-04-02T12:46:13Z",
     "name": "eth0",
     "rxBytes": 508600,
     "rxErrors": 0,
     "txBytes": 273248,
     "txErrors": 0,
     "interfaces": [
      {
       "name": "eth0",
       "rxBytes": 508600,
       "rxErrors": 0,
       "txBytes": 273248,
       "txErrors": 0
      }
     ]
    },
    "volume": [
     {
      "time": "2018-04-02T07:31:18Z",
      "availableBytes": 59133124608,
      "capacityBytes": 59133136896,
      "usedBytes": 12288,
      "inodesFree": 14436792,
      "inodes": 14436801,
      "inodesUsed": 9,
      "name": "default-token-66dlm"
     }
    ],
    "ephemeral-storage": {
     "time": "2018-04-02T12:46:14Z",
     "availableBytes": 27561127936,
     "capacityBytes": 31158935552,
     "usedBytes": 86016,
     "inodesFree": 3746365,
     "inodes": 3840000,
     "inodesUsed": 14
    }
   }
  ]
 }

2 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}