GO:0052314:   phytoalexin metabolic process
The chemical reactions and pathways involving phytoalexins, any of a range of substances produced by plants as part of their defense response.