enable switching stats source from carbon's own loop to metrics data

fixes #417

please review