Limit adding and sending metrics to the collect-metrics hook.

Now that the hook tool add-metrics has been introduced, its usage will be limited to the collect-metrics hook. At this point the hook is only defined, not actually executed.