Skip to content

Support network namespaces #191

Open
@dkerr64

Description

@dkerr64

I would find it very useful to monitor interfaces in a specific network name space. For example if I have multiple containers, I could run vnstat (may need to be as root) on the host and monitor traffic inside the container(s). For example from host command line I can run ip netns exec <netns> cat /sys/class/net/eth0/statistics/rx_bytes etc.

So, if vnstat could accept a network namespace along with the interface name that would be cool...

--iface eth0 --netns <netns>

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions