Any measurable or observable characteristic related to the chemical reactions and pathways involving a vitamin (organic substance found in food that is necessary in trace amounts for normal metabolic function) or cofactor (atom or molecule essential for the action of the vitamin).