Physical Ethernet Interface Sensor
Junos OS Release 19.4R1 supports streaming of physical ethernet interface statistics over gRPC or gNMI services on MX960, MX2020, PTX1000, and PTX5000 routers. Both ON_CHANGE and continous streaming are supported.
OpenConfig model openconfig-if-ethernet.yang (physical interface level) version 2.6.2 (no configuration) supports this feature.
Use the base resource path /interfaces/interface/ethernet/state/ over a gRPC or gNMI subscription to export statistics from the Juniper device to an outside collector.