The instructions are in the Dungeon Master's Guide for D&D 4th Edition, on page 184. That section walks you through building a creature from the ground up, covering its role, defences, attacks, and the maths that keeps it balanced against the party.
If you're homebrewing, the existing monster manuals are worth reading first — they show you how the numbers are put together, which makes designing your own considerably easier.