Is there any meditation technique to develop the feeling of Gratitude? It has occurred to me that if I have a sense of gratitude towards life and towards what has already been given to me then it's not possible to develop desires. I don't know why gratitude is not one of the Brahmaviharas. Lot has been said about it by the Buddha. 

I was looking for any technique to develop gratitude towards life or in general. 

What I was trying was to say, "I am grateful for what has been already given". but it's becoming like a mantra and proving useless. Is there any technique to generate the feeling/emotion of gratitude? 

I looked at this question, but the answer I am looking for isn't there.
It has occurred to me that if I have a sense of gratitude towards life and towards what has already been given to me then it's not
  possible to develop desires.


Are you sure? Where do the suttas say gratitude leads to the realisation of anatta &amp; Nibbana? 


  I don't know why gratitude is not one of the Brahmaviharas. Lot has been said about it by the Buddha.


Brahma-Vihara is more detached than gratitude. Brahma-vihara is a type of liberation (MN 43). Where as gratitude is often mixed with obligation. The Pali word for 'gratitude' is 'katannukatavedi', which means: 'what others do for me; what I must do in return'. 


  I was looking for any technique to develop gratitude towards life or in general.


Simply reflect upon the benefactors you have in life. Mother, father, friends, teachers, employers, employees, bus drivers, shop keepers, nature, food, environment, etc. 

About worldly meritorious right-view, MN 117 says it is right view to believe: "There is mother &amp; father". What this means is there are "benefactors" (towards which gratitude should exist). Ingratitude is a sign of wrong view.