How to move the MI app from the /opt directory to a new location
If you need move the Metric Insights app from the /opt directory to a new location then run the following commands:
mv /opt/mi /new/path
ln -sf /new/path /opt/mi
Next time when you will need to run the installer for Metric Insights application upgrade, it should upgrade the application in the new location.