

def _collect_metrics(self, registry, timestamp=None):
    timestamp = (timestamp or int(round(self.clock.time())))
    metrics = registry.dump_metrics()
    metrics_data = []
    for key in metrics.keys():
        for value_key in metrics[key].keys():
            metric_line = ('%s.%s %s %s\n' % (key, value_key, metrics[key][metrics_data], timestamp))
            metrics_data.append(metric_line)
    return ''.join(metrics_data)

dataset/ETHPy150Open omergertel/pyformance/pyformance/reporters/hosted_graphite_reporter.py HostedGraphiteReporter._collect_metrics/VarMisuse@89/117 `value_key`->`metrics_data`