The Einstein-Boltzmann Relation for Thermodynamic and Hydrodynamic Fluctuations