Excitation of solar-like oscillations across the HR diagram