Ultraviolet-B (UV-B) radiation (280−320 nm) may induce photobiological stress in plants, activate the plant defense system, and induce changes of metabolites. In our previous work, we found that between the two Astragalus varieties prescribed by the Chinese Pharmacopoeia, Astragalus mongholicus has better tolerance to UV-B. Thus, it is necessary to study the metabolic strategy of Astragalus under UV-B radiation further. In the present study, we used untargeted gas chromatography-mass spectrometry (GC-MS) and targeted liquid chromatography-mass spectrometry (LC-MS techniques) to investigate the profiles of primary and secondary metabolic. The profiles revealed the metabolic response of Astragalus to UV-B radiation. We then used real-time polymerase chain reaction (RT-PCR) to obtain the transcription level of relevant genes under UV-B radiation (UV-B supplemented in the field, λmax = 313 nm, 30 W, lamp-leaf distance = 60 cm, 40 min·day-1), which annotated the responsive mechanism of phenolic metabolism in roots. Our results indicated that supplemental UV-B radiation induced a stronger shift from carbon assimilation to carbon accumulation. The flux through the phenylpropanoids pathway increased due to the mobilization of carbon reserves. The response of metabolism was observed to be significantly tissue-specific upon the UV-B radiation treatment. Among phenolic compounds, C6C1 carbon compounds (phenolic acids in leaves) and C6C3C6 carbon compounds (flavones in leaves and isoflavones in roots) increased at the expense of C6C3 carbon compounds. Verification experiments show that the response of phenolics in roots to UV-B is activated by upregulation of relevant genes rather than phenylalanine. Overall, this study reveals the tissues-specific alteration and mechanism of primary and secondary metabolic strategy in response to UV-B radiation.