I'm looking through the D-Bus API for Network Manager, on Centos Stream 8, and for the entire org.freedesktop.NetworkManager.Device.Statistics interface all the properties are showing 0 including RxBytes and TxBytes. This is for all network interfaces including the active ethernet port being used to log into the machine and the loopback.
Is there some other object type that actually has this information? Is the interface deprecated? Do I need to run a method to start recording somewhere? Do I need to subscribe to changes somehow? Is this related to nm-settings-ifcfg-rh?
Netstat has no problem reporting these stats. And Ubuntu 22.04 reports them but only for loopback.
Edit: I thought I was on the Ubuntu device but actually it was the Centos box.
NetworkManager-1.38.4-1.fc36.x86_64which is a far newer version.