(self, beans, tags)
Process HDFS Datanode metrics from given beans
Process HDFS Datanode metrics from given beans
Process HDFS Datanode metrics from given beans
def _hdfs_datanode_metrics(self, beans, tags):
        """
        Process HDFS Datanode metrics from given beans
        """
        # Only get the first bean
        bean = next(iter(beans))
        bean_name = bean.get('name')

        self.log.debug("Bean name retrieved: %s", bean_name)

        for metric, (metric_name, metric_type) in iteritems(self.HDFS_METRICS):
            metric_value = bean.get(metric)
            if metric_value is not None:
                self._set_metric(metric_name, metric_type, metric_value, tags)
def _hdfs_datanode_metrics ( self , beans , tags ) : # Only get the first bean bean = next ( iter ( beans ) ) bean_name = bean . get ( 'name' ) self . log . debug ( "Bean name retrieved: %s" , bean_name ) for metric , ( metric_name , metric_type ) in iteritems ( self . HDFS_METRICS ) : metric_value = bean . get ( metric ) if metric_value is not None : self . _set_metric ( metric_name , metric_type , metric_value , tags )