def add_cluster_stats(self):
        url = self.stats_url.replace(self.DEFAULT_PATH, '/_cluster/health')
        response = self.http_get(url)
        if response.status_code == 200:
            data = response.json()
            self.add_gauge_value('Cluster/Status', 'level',
                                 self.STATUS_CODE[data.get('status', 'red')])
            self.add_gauge_value('Cluster/Nodes', 'nodes',
                                 data.get('number_of_nodes', 0))
            self.add_gauge_value('Cluster/Data Nodes', 'nodes',
                                 data.get('number_of_data_nodes', 0))
            self.add_gauge_value('Cluster/Shards/Active', 'shards',
                                 data.get('active_shards', 0))
            self.add_gauge_value('Cluster/Shards/Initializing', 'shards',
                                 data.get('initializing_shards', 0))
            self.add_gauge_value('Cluster/Shards/Primary', 'shards',
                                 data.get('active_primary_shards', 0))
            self.add_gauge_value('Cluster/Shards/Relocating', 'shards',
                                 data.get('relocating_shards', 0))
            self.add_gauge_value('Cluster/Shards/Unassigned', 'shards',
                                 data.get('unassigned_shards', 0))
        else:
            LOGGER.error('Error collecting cluster stats (%s): %s',
                         response.status_code, response.content)
Add stats that go under Component/Cluster
dataset/ETHPy150Open MeetMe/newrelic-plugin-agent/newrelic_plugin_agent/plugins/elasticsearch.py/ElasticSearch.add_cluster_stats