def METHOD_NAME(self, instance):
    self.update_from_config(instance)
    for device in self.list_ups_devices():
        if device not in self.excluded_devices:
            excluded = False
            for r in self.excluded_devices_re:
                if r.match(device):
                    excluded = True
                    break
            if excluded:
                continue
            self.log.debug("querying device: %s", device)
            # query stats
            raw_stats = self.query_ups_device(device)
            stats, tags = self.convert_and_filter_stats(raw_stats)
            # report stats
            for k, v in stats.items():
                self.gauge('upsc.{}'.format(k), v, tags=tags)