Add image metrics for push and pull Upstream-commit: 4703b284e6695524a58ae0cd6f94eaf7359bd500 Component: engine