The alarm went off but I didn't wake up.

Literal

Alarm [subj-が] rang [despite-のに] eyes [subj-が] not-awakened.

~のに ('despite, even though') marks a frustrated expectation — the alarm rang, so waking up should have followed. 目が覚める ('eyes awaken') is the intransitive pair of 目を覚ます.