Revert "remove util functions"
Revert "remove util functions"

This reverts commit 5cab74cade781c50e83b0f34decd3dcdc5e4d6ae.

raintank/metrictank,replay/metrictank,replay/metrictank,OOM-Killer/metrictank,raintank/metrictank,raintank/metrictank,replay/metrictank,replay/metrictank,raintank/raintank-metric,raintank/raintank-metric,raintank/metrictank,OOM-Killer/metrictank,OOM-Killer/metrictank,raintank/raintank-metric