Only collect stats for app main containers

This commit is contained in:
Johannes Zellner
2023-10-23 22:23:23 +02:00
parent e87370354b
commit e7208278fc

View File

@@ -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())