feature: Prepare metrics for heka.

* Send metrics to stderr after flattening/formatting.

issue #1190