Ultra-Compact Metrology Systems using Nanophotonics Elements