Hook tool for sending metrics from charm.