The chemical reactions and pathways involving alpha-pinene, a monoterpene that may be a significant factor affecting bacterial activities in nature. It is a major component in tea-tree oils, and gives off a piney smelling odor.