Continuous corrosion monitoring