def METHOD_NAME(self):
    for metric_name, measure in itertools.chain(
            self.gauges.items(),
            self.counters.items(),
            self.times.items()):
        try:
            # NOTE(jd) We avoid considering any concurrency here as statsd
            # is not designed to run in parallel and we do not envision
            # operators manipulating the resource/metrics using the Gnocchi
            # API at the same time.
            metric = self.metrics.get(metric_name)
            if not metric:
                ap_name = self._get_archive_policy_name(metric_name)
                metric = self.indexer.create_metric(
                    uuid.uuid4(),
                    self.conf.statsd.creator,
                    archive_policy_name=ap_name,
                    name=metric_name,
                    resource_id=self.conf.statsd.resource_id)
                self.metrics[metric_name] = metric
            self.incoming.add_measures(metric.id, (measure,))
        except Exception as e:
            LOG.error("Unable to add measure %s: %s",
                      metric_name, e)
    self.reset()