add metrics plugin

The default metrics plugin will just log, but easy to implement plugin to interface with your favorite monitoring solution.