def add_node_datapoints(self, node_data, queue_data, channel_data):
        """Add all of the data points for a node

        :param list node_data: all of the nodes
        :param list queue_data: all of the queues
        :param list channel_data: all of the channels

        """
        channels = 0
        for node in node_data:
            name = node['name'].split('@')[-1]
            self.add_node_channel_datapoints(name, channel_data)
            self.add_node_message_datapoints(name, queue_data, channel_data)
            self.add_node_queue_datapoints(name, queue_data)

            count = 0
            for channel in channel_data:
                if channel['node'].split('@')[-1] == name:
                    count += 1
            channels += count

            base_name = 'Node/%s' % name
            self.add_gauge_value('%s/Channels/Open' % base_name,
                                 'channels', count)
            self.add_gauge_value('%s/Erlang Processes' % base_name, 'processes',
                                 node.get('proc_used', 0))
            self.add_gauge_value('%s/File Descriptors' % base_name, 'fds',
                                 node.get('fd_used', 0))
            self.add_gauge_value(base_name % '%s/Memory', 'bytes',
                                 node.get('mem_used', 0))
            self.add_gauge_value('%s/Sockets' % base_name, 'sockets',
                                 node.get('sockets_used', 0))

        # Summary stats
        self.add_gauge_value('Summary/Channels', 'channels', channels)
        self.add_gauge_value('Summary/Consumers', 'consumers', self.consumers)
dataset/ETHPy150Open MeetMe/newrelic-plugin-agent/newrelic_plugin_agent/plugins/rabbitmq.py/RabbitMQ.add_node_datapoints/swapped operands of `%`