From e7208278fc2a3f8a5f6625763b242bc22a95a5e9 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 23 Oct 2023 22:23:23 +0200 Subject: [PATCH] Only collect stats for app main containers --- setup/start/collectd/docker-stats.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup/start/collectd/docker-stats.py b/setup/start/collectd/docker-stats.py index 0b4aa414b..80b13c4a1 100644 --- a/setup/start/collectd/docker-stats.py +++ b/setup/start/collectd/docker-stats.py @@ -28,6 +28,11 @@ def read(): for line in lines: stat = json.loads(line) containerName = stat["Name"] # same as app id + + # currently we only collect data for apps main containers. Those have the app id as the Name which is 36 long + if len(containerName) != 36: + continue + networkData = stat["NetIO"].split("/") networkRead = parseSiSize(networkData[0].strip()) networkWrite = parseSiSize(networkData[1].strip())