Charging Quantum Batteries via Otto machines: The influence of monitoring