Observational constraints on the origin of the elements