Let $V$ be a vector field on a smooth manifold $M$.
Are there nice conditions under which there exists a (Riemannian) metric on $M$ such that $V$ is the gradient of some smooth function on $M$?
One obstruction is that gradient vector fields have no closed integral curves (since a function is increasing on integral curves of its gradient).