From Solar to Stellar Brightness Variations: The Effect of Metallicity