code: def froms(self):
          
          eax = {}
          for name, config in six.iteritems(self._metrics):
              from_ = self._get_property(config, 'from', default=self.stdout)
              eax.setdefault(from_, {})[name] = config
          return eax
docs: Group metrics according to the `from` property.