prometheus 獲取cpu利用率

 

rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name!=""}[5m])

這個時間可以是5m,也可以是更長

https://www.replex.io/blog/kubernetes-in-production-the-ultimate-guide-to-monitoring-resource-metrics

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章