1. Updated latest metrics example.  2.  Added api handlers for metric and output.