Riemannian aspects of potential theory