The Campuhan Ridge Walk is about 1.5 km each way. From the centre of Ubud you can walk along the ridge and back, it's about 4.5 km and will take about 1.5 hours.