参考 https://github.com/DataDog/the-monitor/blob/master/kubernetes/how-to-collect-and-graph-kubernetes-metrics.md https://kubernetes.io/docs/tasks/debug-application-cluster/resource-usage-monitoring/
这个小伙子写的很不错