We report on a quantitative analysis of the magnetic field generated by a continuous current running in metallic microwires fabricated on an electrically insulating diamond substrate. A layer of nitrogen-vacancy (NV) centers engineered near the diamond surface is employed to obtain spatial maps of the vector magnetic field, by measuring Zeeman shifts through optically detected magnetic resonance spectroscopy.