Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcontainer: fix the way to get network stats #2072

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Jun 12, 2019

  1. libcontainer: fix the way to get network stats

    Currently runc does not know the interfaces, so c.config.Networks is null.
    But we can get the network stats from "/proc/<initPid>/root/sys/class/net/<EthInterface>/statistics/"
    
    Signed-off-by: ZeroMagic <anthonyliu@zju.edu.cn>
    ZeroMagic committed Jun 12, 2019
    Configuration menu
    Copy the full SHA
    3bf6261 View commit details
    Browse the repository at this point in the history
  2. events: add network stats

    Signed-off-by: ZeroMagic <anthonyliu@zju.edu.cn>
    ZeroMagic committed Jun 12, 2019
    Configuration menu
    Copy the full SHA
    cfd7266 View commit details
    Browse the repository at this point in the history