Our results predicted that astragalin and rosmarinic acid might regulate the JAK-STAT pathway by targeting PIM2 and STAT1, respectively, while paeoniflorin and rosmarinic acid were likely to regulate inflammatory responses by targeting TNFα, IL-6, and IL-4 during T2D. Here, IL6 is linked to type 2 diabetes mellitus.