Our study provided a hint 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 disorder by targeting TNFα, IL-6, and IL-4 during T2D. Here, IL4 is linked to type 2 diabetes mellitus.