The chemical reactions and pathways involving chemokines, any of a subgroup of cytokines which act primarily on hemopoietic cells in acute and inflammatory processes and other immunoregulatory functions.