Here's why:
* Gerund: A gerund is a verb form ending in "-ing" that functions as a noun.
* Gerund Phrase: A gerund phrase is a gerund plus any modifiers or objects that go with it.
In this sentence, "ringing alarm" functions as a noun. It's the subject of the sentence, performing the action of "jolting" you away from your dreams.