grafana / kubernetes-app

A set of dashboards and panels for kubernetes.
https://grafana.com/plugins/grafana-kubernetes-app
Apache License 2.0
401 stars 149 forks source link

New version of kube-state-metrics shows deprecations upcoming which are used in k8s-cluster dashboard #71

Open colemanserious opened 4 years ago

colemanserious commented 4 years ago

Multiple of the node metrics used in k8s-cluster.json are deprecated in new versions of kube-state-metrics (1.6+). The pattern seems to be that instead of requesting a specific resource metric (ala kube_node_status_capacity_cpu_cores), you would instead request kube_node_status_capacity and specify the appropriate resource label. Similar for kube_node_status_allocatable. It appears as if that pattern (generic metric, specify resource) would have also held in versions of kube-state-metrics beginning at 1.4.0, though would not work in versions from 1.1 - 1.4.

kube_node_status_phase is also deprecated, but does not appear to be used in any of the dashboards.