lens icon indicating copy to clipboard operation
lens copied to clipboard

Nodes capacity double size

Open pavel-trubitsyn opened this issue 2 years ago • 1 comments

Describe the bug Lens shows wrong node's capacity (e.g. memory) when there are several kube_node_status_capacity per node from different jobs. For example:

kube_node_status_capacity{container="kube-state-metrics", endpoint="http", instance="10.200.97.39:8080", job="kube-state-metrics", namespace="monitoring", node="ip-10-200-102-50.eu-north-1.compute.internal", pod="prometheus-kube-state-metrics-7584c65557-qp68z", resource="memory", service="prometheus-kube-state-metrics", unit="byte"}

kube_node_status_capacity{instance="kubecost-cost-analyzer.kubecost.svc:9003", job="kubecost", node="ip-10-200-102-50.eu-north-1.compute.internal", resource="memory", unit="byte"}

In this case Lens sums these metrics and shows 2x capacity.

Expected behavior Lens should use single metric per node (e.g. only from kube-state-metrics).

Screenshots изображение

Environment (please complete the following information):

  • Lens Version: 6.0.1
  • OS: Windows

pavel-trubitsyn avatar Aug 26 '22 05:08 pavel-trubitsyn

Having the same problem as well when Kubecost is deployed.

lisenet avatar Sep 09 '22 16:09 lisenet