corrosion inhibitor compositions for metals are disclosed which comprise the product resulting from reacting a vinyl substituted pyrazine such as 2 - vinylpyrazine with a primary or secondary amine such as dodecanamine in the presence of a catalyst such as acetic acid and a suitable carrier liquid such as isopropanol . these corrosion inhibitors are particularly useful in the protection of downhole oil and gas well production and drilling equipment .