High-energy $\gamma$ rays originating from interactions of cosmic rays (CRs) with the interstellar medium (ISM) carry direct information about the spatial and spectral distribution of these relativistic particles. Gamma-ray observations of Fermi-LAT of the diffuse gas emission show enhanced emission in the region around 4 kpc from the Galactic center.
Analyses of the diffuse emission however are performed on a large spatial scale, usually of several kpc$^2$. Giant Molecular clouds instead are a unique tool, which can be used as ‘barometers’ to infer the cosmic-ray density point by point, in distant and small regions of the Galaxy. Their enhanced density (n$_H$ > 100 cm$^-3$), compared to the diffuse gas, allows us to derive the CR energy density on scales comparable to the size of the clouds (10--100 pc). We report here the results of the analyses of Fermi-LAT Pass8 data, obtained in the direction of molecular clouds located in the entire galactic disk from 0.1 kpc to 12 kpc from the Galactic Center (GC). The CR densities measured at the locations of these clouds have a high degree of fluctuation and are not always compatible with the values derived from the diffuse gas.