You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kubernetes for Prometheus Dashboard 的面板上(Pod 资源总览 -> Pod 资源明细有报错)报错内容如下:
"found duplicate series for the match group {pod="dind-0"} on the right hand-side of the operation: [{name="kube_pod_info", app_kubernetes_io_name="kube-state-metrics", app_kubernetes_io_version="v2.2.1", created_by_kind="StatefulSet", created_by_name="dind", host_ip="xxx", host_network="false", instance="xxx:8080", job="kube-state-metrics", k8s_namespace="ops-monit", k8s_sname="kube-state-metrics", namespace="zadig-local", node="xxx", pod="dind-0", pod_ip="xxx", uid="xxx"}, {name="kube_pod_info", app_kubernetes_io_name="kube-state-metrics", app_kubernetes_io_version="v2.2.1", created_by_kind="StatefulSet", created_by_name="dind", host_ip="xxx", host_network="false", instance="xxx:8080", job="kube-state-metrics", k8s_namespace="ops-monit", k8s_sname="kube-state-metrics", namespace="koderover-agent", node="xxx", pod="dind-0", pod_ip="xxx", uid="xxx"}];many-to-many matching not allowed: matching labels must be unique on one side"
修改 H 栏表达式可解决, 不知道是否应该这样修改
// 由
kube_pod_container_status_restarts_total{origin_prometheus=~"$origin_prometheus",pod=~"$Pod",container =~"$Container",container !="",container!="POD",namespace=~"$NameSpace"} * on (pod) group_left(node) kube_pod_info{origin_prometheus=~"$origin_prometheus",pod=~"$Pod",node=~"^$Node$",namespace=~"$NameSpace"}
// 改为
kube_pod_container_status_restarts_total{origin_prometheus=~"$origin_prometheus",pod=~"$Pod",container =~"$Container",container !="",container!="POD",namespace=~"$NameSpace"} * on (pod) group_left(node) (sum by (pod) (kube_pod_info{origin_prometheus=~"$origin_prometheus",pod=~"$Pod",node=~"^$Node$",namespace=~"$NameSpace"}))
The text was updated successfully, but these errors were encountered:
Kubernetes for Prometheus Dashboard 的面板上(Pod 资源总览 -> Pod 资源明细有报错)报错内容如下:
修改 H 栏表达式可解决, 不知道是否应该这样修改
The text was updated successfully, but these errors were encountered: