Measuring voltage/current digitally on two separate power supply rails
The optoisolator -> \$\mu\$C is a viable path if you pick the right optoisolator. The IL300 is an analog optocoupler which, thanks to a servo mechanism, achieves a 0.01% servo linearity.