Here, it depends on the metal, because each type of metal has different properties. In any case, roughen the surfaces well, clean them from all dirt, oil, and grease residues and use a two-component adhesive based on epoxy resin or polyurethane.