From c9551709db9550157cac8ca05e234c49825e95d8 Mon Sep 17 00:00:00 2001 From: Qiujie Li Date: Tue, 24 Oct 2023 17:17:21 +0800 Subject: [PATCH] add container_memory_rss system.slice --- templates/General/ocp-performance.jsonnet | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/General/ocp-performance.jsonnet b/templates/General/ocp-performance.jsonnet index 49a7a42..42a9814 100644 --- a/templates/General/ocp-performance.jsonnet +++ b/templates/General/ocp-performance.jsonnet @@ -400,6 +400,13 @@ local top10ContMem = genericGraphLegendPanel('Top 10 container RSS', 'bytes').ad ) ); +local contMemRSSSystemSlice = genericGraphLegendPanel('container RSS system.slice', 'bytes').addTarget( + prometheus.target( + 'sum by (node)(container_memory_rss{id="/system.slice"})', + legendFormat='system.slice - {{ node }}', + ) +); + local podDistribution = genericGraphLegendPanel('Pod Distribution', 'none').addTarget( prometheus.target( 'count(kube_pod_info{}) by (node)', @@ -641,7 +648,8 @@ grafana.dashboard.new( routesCount { gridPos: { x: 0, y: 20, w: 8, h: 8 } }, alerts { gridPos: { x: 8, y: 20, w: 8, h: 8 } }, podDistribution { gridPos: { x: 16, y: 20, w: 8, h: 8 } }, - top10ContMem { gridPos: { x: 0, y: 28, w: 24, h: 8 } }, + top10ContMem { gridPos: { x: 0, y: 28, w: 12, h: 8 } }, + contMemRSSSystemSlice { gridPos: { x: 12, y: 28, w: 12, h: 8 } }, top10ContCPU { gridPos: { x: 0, y: 36, w: 12, h: 8 } }, goroutines_count { gridPos: { x: 12, y: 36, w: 12, h: 8 } }, ]