def METHOD_NAME(self, instance):
    if 'host' not in instance:
        raise Exception('Twemproxy instance missing "host" value.')
    tags = instance.get('tags', [])
    response = self._get_data(instance)
    self.log.debug("Twemproxy `response`: %s", response)
    if not response:
        self.log.warning("No response received from twemproxy.")
        return
    metrics, version = Twemproxy.parse_json(response, tags)
    for row in metrics:
        try:
            name, value, tags = row
            if name.split('.')[1] in (GLOBAL_STATS | POOL_STATS | SERVER_STATS):
                self.gauge(name, value, tags)
            else:
                self.rate(name, value, tags)
        except Exception as e:
            self.log.error('Could not submit metric: %s: %s', repr(row), e)
    if self.is_metadata_collection_enabled():
        if version is None:
            self.log.warning('Error collecting Twemproxy version')
        else:
            self.set_metadata('version', version)