Meditation

Thanksgiving is a necessary element to moving forward with God. Meditation is also essential. But what is the scriptural measure of meditating and how do we do it?