One may start to face him/herself and - by remembering/reflecting on ones done good deeds and qualities - thinking - wishing "May I be at ease, my I gain peace and liberation with ease", then, by dedicating at the same times ones done merits, swift to the most beloved, best most obligated (teacher in Dhamma, admirable friend, Sangha, parents...), best by name or imagening, "May X be at ease, may he/she gain peace and liberation, by him/herself, with ease", then further, friends, all you know who come to mind, best one by one, the "bad one", next village, next countr_, the seen, unseen, big, small, every creature, what ever lives, ... in all directions, all realms... it's good to verbalice and imagen as long as possible, aloud or by thought. If not having falled asleep till got all cover all, without doubt, you probably will not care much about sleep/not sleep, prefer to dwell mindful and watchful in this realm.
"For one whose awareness-release through good will is cultivated, developed, pursued, handed the reins and taken as a basis, given a grounding, steadied, consolidated, and well-undertaken, eleven benefits can be expected. Which eleven?
"One sleeps easily, wakes easily, dreams no evil dreams. One is dear to human beings, dear to non-human beings. The devas protect one. Neither fire, poison, nor weapons can touch one. One's mind gains concentration quickly. One's complexion is bright. One dies unconfused and — if penetrating no higher — is headed for the Brahma worlds.
"These are the eleven benefits that can be expected for one whose awareness-release through good will is cultivated, developed, pursued, handed the reins and taken as a basis, given a grounding, steadied, consolidated, and well-undertaken."
Metta (Mettanisamsa) Sutta: Good Will
Good detail teachings on Metta, also in relation to Vipassana, one may find in Ven. Nyanadassanas Words on Karaṇīya Metta-Sutta
A probably good way and of course most traditional, would be if putting effort into learning to maybe recitate the Karaniya Metta Sutta You may make use and follow the Venerables of Wat Metta:
Audio download (pali/engl) and the text to it. Then chanting it, while starting to follow above steps.
Having later found good understanding of metta, one might arrange ones "own" gift with short or extended stanzas.
Metta & Mudita
[Note: This is a gift of Dhamma and not meant for commercial purpose or other low wordily gains by means of trade and exchange.]