The chemical reactions and pathways involving triethanolamine, a combustible, hygroscopic, colorless liquid commonly used in dry-cleaning solutions, cosmetics, detergents, textile processing, wool scouring, and as a corrosion inhibitor and pharmaceutical alkalizing agent.