Usually dyslipedemia, hyperglycemia
are the components of metabolic syndrome
Usually due to envirnmental stress, or due to medicines or strong family history of diabetes
usually predisposes to development of diabetes.
There is one more possibility, you might be having prediabetes you might not be know it. It might get precipitated now due to stress or some other issues.
So dont worry just start taking medicines as adviced by your doctor.