added metrics to api and cli

This is the initial addition of metrics to the API and CLI.

Docker-DCO-1.1-Signed-off-by: Evan Hazlett <ejhazlett@gmail.com> (github: ehazlett)