opsnull / hadoop_jmx_exporter

HDFS & YARN jmx metrics prometheus exporter
77 stars 65 forks source link

hadoop_datanode_metrics 未定义诶 #3

Closed HeChuanXUPT closed 3 years ago

HeChuanXUPT commented 4 years ago

hdfs_journalnode.py 里面多个地方使用了self.hadoop_datanode_metrics, 但是没有这个的定义, 猜测是复制粘贴的时候单词写错了? 应该是hadoop_journalnode_metrics吧

            for i in range(len(beans)):
                if 'tag.Hostname' in beans[i]:
                    self.target = beans[i]["tag.Hostname"]
                    break
            self.hadoop_datanode_metrics.update(self.common_metric_collector.get_metrics(beans, self.target))
            self.get_metrics(beans)
opsnull commented 3 years ago

是的,已修复,感谢反馈!