added commit parameter for creation a metric value