Should we measure our life in terms of relationship, contribution to the world?

We get evaluated at work or in seeking education. What about our life? What are the metrics one has to measure the meaningfulness of their life?

Is it the number of friends we make, how we treat our siblings, parents?
Is it how we shape life in better ways to people around us?

Or is it the wealth, glory or materialistic possession? What is the measure of our life? What makes us go to sleep in peace.

What are that measurable metrics which ensure we die happily?