A suitable adhesive for metal to glass can be found at the auto parts store. It is common to have inside rear view mirrors to fall from windshields.
The adhesive is a small tube similar to that in which toothpaste is sold and an activator swab or wipe.
One must be absolutely certain both surfaces are clean and perfectly flat. Follow the instructions on the packaging and you may get a solid bond.
I have, in the past, had great success with replacing fallen mirrors. The strength of this type of bond is quite impressive. I've also had a failure in two instances, possibly due to poor cleaning and/or poor retention while the adhesive cures.
If you can place the glass horizontal while the bond cures, all the better. Expect to use some form of tape for temporary security during the curing process.