From 04c52e1b9ce873cb5dd78436f8d644b3f5ec5338 Mon Sep 17 00:00:00 2001 From: Austin Hoppe Date: Tue, 14 Nov 2023 13:03:54 -0600 Subject: [PATCH] jsonnet: migrate from deprectaed kube-state-metrics usage Use new form for deprecated metric. To fix #2264 --- .../addons/weave-net/grafana-weave-net-cluster.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net-cluster.json b/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net-cluster.json index 7d52f1742e..102269f0b0 100644 --- a/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net-cluster.json +++ b/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net-cluster.json @@ -3135,7 +3135,7 @@ ], "targets": [ { - "expr": "sort_desc(floor(label_replace(max by(node) (max by(instance) (kubelet_running_pod_count{job=\"kubelet\",metrics_path=\"/metrics\"}) * on(instance) group_left(node) kubelet_node_name{job=\"kubelet\",metrics_path=\"/metrics\"}) / max by(node) (kube_node_status_capacity_pods{job=\"kube-state-metrics\"}) , \"node_ip\", \"$1.$2.$3.$4\", \"node\", \"^ip-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).*$\") * 100))", + "expr": "sort_desc(floor(label_replace(max by(node) (max by(instance) (kubelet_running_pod_count{job=\"kubelet\",metrics_path=\"/metrics\"}) * on(instance) group_left(node) kubelet_node_name{job=\"kubelet\",metrics_path=\"/metrics\"}) / max by(node) (kube_node_status_capacity{resource=\"pods\",unit=\"integer\",job=\"kube-state-metrics\"}) , \"node_ip\", \"$1.$2.$3.$4\", \"node\", \"^ip-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).*$\") * 100))", "format": "time_series", "hide": false, "instant": true,