From b0778202473a071c2917f23d3b7a17631b289e79 Mon Sep 17 00:00:00 2001 From: Arseniy Zorin Date: Tue, 21 May 2024 16:18:11 +0300 Subject: [PATCH] fix(labels): drops image label in container_memory_working_set_bytes metric --- src/robusta/core/playbooks/prometheus_enrichment_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/robusta/core/playbooks/prometheus_enrichment_utils.py b/src/robusta/core/playbooks/prometheus_enrichment_utils.py index d3817fcea..3229886a8 100644 --- a/src/robusta/core/playbooks/prometheus_enrichment_utils.py +++ b/src/robusta/core/playbooks/prometheus_enrichment_utils.py @@ -479,7 +479,7 @@ def create_resource_enrichment( values_format=ChartValuesFormat.CPUUsage, ), (ResourceChartResourceType.Memory, ResourceChartItemType.Pod): ChartOptions( - query='sum(container_memory_working_set_bytes{namespace="$namespace", pod=~"$pod", container!="", image!=""}) by (pod, job)', + query='sum(container_memory_working_set_bytes{namespace="$namespace", pod=~"$pod", container!=""}) by (pod, job)', values_format=ChartValuesFormat.Bytes, ), (ResourceChartResourceType.Memory, ResourceChartItemType.Node): ChartOptions( @@ -487,7 +487,7 @@ def create_resource_enrichment( values_format=ChartValuesFormat.Percentage, ), (ResourceChartResourceType.Memory, ResourceChartItemType.Container): ChartOptions( - query='sum(container_memory_working_set_bytes{namespace="$namespace", pod=~"$pod", container=~"$container", image!=""}) by (container, pod, job)', + query='sum(container_memory_working_set_bytes{namespace="$namespace", pod=~"$pod", container=~"$container"}) by (container, pod, job)', values_format=ChartValuesFormat.Bytes, ), (ResourceChartResourceType.Disk, ResourceChartItemType.Pod): None,