def add_datapoints(self, stats):
        matches = PATTERN.findall(stats or '')
        for key, value in matches:

            try:
                value = int(value)
            except ValueError:
                try:
                    value = float(value)
                except ValueError:
                    value = 0

            if key in self.KEYS:
                if self.KEYS[key].get('type') == 'gauge':
                    self.add_gauge_value(self.KEYS[key]['label'],
                                         self.KEYS[key].get('suffix', ''),
                                         value)
                else:
                    self.add_derive_value(self.KEYS[key]['label'],
                                          self.KEYS[key].get('suffix', ''),
                                          value)
            else:
                LOGGER.debug('Found unmapped key/value pair: %s = %s',
                             key, value)
        
        score_data = self.get_scoreboard(stats)
        for key, value in score_data.iteritems():
            if key in self.KEYS:
                if self.KEYS[key].get('type') == 'gauge':
                    self.add_gauge_value(self.KEYS[key]['label'],
                                         self.KEYS[key].get('suffix', ''),
                                         value)
                else:
                    self.add_derive_value(self.KEYS[key]['label'],
                                          self.KEYS[key].get('suffix', ''),
                                          value)
            else:
                LOGGER.debug('Found unmapped key/value pair: %s = %s',
                             key, value)
Finds all of variables at a site
dataset/ETHPy150Open MeetMe/newrelic-plugin-agent/newrelic_plugin_agent/plugins/apache_httpd.py/ApacheHTTPD.add_datapoints--crossover with--dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/odmservices/series_service.py/SeriesService.get_variables_by_site_code