Monitor macvlan traffic

Hey all,

when running containers on normal bridge mode i get interfaces like vethXXXX. Most monitoring tools get those interfaces and start monitoring traffic, bytes out/in and so on.

But when using macvlan how can i monitor traffic, bandwidth and other things since there is no interface existing.

Thanks!

You can check LXD metrics as explained in https://linuxcontainers.org/lxd/docs/master/metrics/#metrics

If on the other hand, you want to say debug things with tcpdump, you can simply capture the traffic on the parent device and you’ll see the traffic of the macvlan device assigned to your instance.