def add_datapoints(self, stats):
        totals = dict()
        for node in stats.get('nodes'):
            for key in stats['nodes'][node].keys():
                if isinstance(stats['nodes'][node][key], dict):
                    if key not in totals:
                        totals[key] = dict()
                    self.process_tree(totals[key],
                                      stats['nodes'][node][key])

        self.add_index_datapoints(totals)
        self.add_network_datapoints(totals)
        self.add_cluster_stats()
Add all of the datapoints for the Elasticsearch poll
dataset/ETHPy150Open MeetMe/newrelic-plugin-agent/newrelic_plugin_agent/plugins/elasticsearch.py/ElasticSearch.add_datapoints