add sum
refactoring
use common metrics if name is the same
mutex.Lock