Added a collect-metrics hook.
Merge pull request #44 from tasdomas/collect-metrics-hook

Added a collect-metrics hook.