From 6189bf9f7cd272aa73d15ebe9e1528d75520b6da Mon Sep 17 00:00:00 2001 From: Hailong Liu Date: Thu, 18 May 2023 02:10:40 +0000 Subject: [PATCH] podsAll: Limit the con_id number to 12 Nowtimes the con_id shows the all id numbers when curl. However this may be toooo much for grafana, and not a nice experience for user. So we limit it to 12, this is enough. Signed-off-by: Hailong Liu --- source/tools/monitor/unity/collector/podMan/podsAll.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tools/monitor/unity/collector/podMan/podsAll.lua b/source/tools/monitor/unity/collector/podMan/podsAll.lua index 9e81eba0..3a15d5a4 100644 --- a/source/tools/monitor/unity/collector/podMan/podsAll.lua +++ b/source/tools/monitor/unity/collector/podMan/podsAll.lua @@ -131,7 +131,7 @@ local function setupPlugins(res, proto, pffi, mnt, ino) }, { name = "con_id", - index = con.id, + index = string.sub(con.id, 1, 12) }, } -- Gitee