def METHOD_NAME(self, instance):
    jmx_address = instance.get('hdfs_datanode_jmx_uri')
    if jmx_address is None:
        raise Exception("The JMX URL must be specified in the instance configuration")
    # Set up tags
    tags = instance.get('tags', [])
    tags.append("datanode_url:{}".format(jmx_address))
    tags = list(set(tags))
    # Get version info from JMX
    datanode_info = self._get_jmx_data(jmx_address, self.HDFS_DATANODE_VERSION_NAME, tags)
    if datanode_info:
        self._collect_metadata(datanode_info)
    # Get data from JMX
    hdfs_datanode_beans = self._get_jmx_data(jmx_address, self.HDFS_DATANODE_BEAN_NAME, tags)
    # Process the JMX data and send out metrics
    if hdfs_datanode_beans:
        self._hdfs_datanode_metrics(hdfs_datanode_beans, tags)
    self.service_check(
        self.JMX_SERVICE_CHECK,
        AgentCheck.OK,
        tags=tags,
    )