We monitor network traffic to the containers using SNMP. What we are finding though is on every reboot, the OID for the network device changes. Once this happens, the monitoring breaks becuase it is checking the wrong OID. Example, pre-reboot:
I don’t think so. You’ll notice that the number comes from the VETH pair created to manage network connectivity (you can see it by running ip addr on the host before and after restarting a container) and the ifindex is set by the kernel without any possibility of user configuration.
This is the age-old problem of ifindex persistence.
If you use a standard monitoring tool like Icinga I think it’s possible to monitor with the interface name instead of the index.