I’m trying to get container stats programmatically, For docker right now I hit the stats api to get it, But I was recently told that operation is quite resource intensive and parsing cgroup files are the way to go.
Is there any truth to it? I would think that the daemon would have the best understanding of its own container runtime. If yes, will this apply to other container runtimes as well.