如何在k8s集群中使用heapster获取文件系统/用法

时间:2017-10-12 13:44:25

标签: go kubernetes heapster

如何在k8s群集中使用heapster获取“filesystem / usage”?我使用了heapster monitor k8s,但我无法获得节点磁盘使用率。有人帮忙吗?

1 个答案:

答案 0 :(得分:0)

curl -L 10.233.8.12:/api/v1/model/nodes/node1/metrics/filesystem/usage?labels="resource_id:/"     ws.Route(ws.GET("/nodes/{node-name}/metrics/{metric-name:*}"). To(metrics.InstrumentRouteFunc("nodeMetrics", a.nodeMetrics)). Doc("Export a node-level metric"). Operation("nodeMetrics"). Param(ws.PathParameter("node-name", "The name of the node to lookup").DataType("string")). Param(ws.PathParameter("metric-name", "The name of the requested metric").DataType("string")). Param(ws.QueryParameter("start", "Start time for requested metric").DataType("string")). Param(ws.QueryParameter("end", "End time for requested metric").DataType("string")). Param(ws.QueryParameter("labels", "A comma-separated list of key:values pairs to use to search for a labeled metric").DataType("string")). Writes(types.MetricResult{}))