def __init__(self, cluster, nnc): MetricCollector.__init__(self, cluster, "hdfs", "datanode") self.target = "-" self.nnc = nnc self.hadoop_datanode_metrics = {} for i in range(len(self.file_list)): self.hadoop_datanode_metrics.setdefault(self.file_list[i], {}) self.common_metric_collector = CommonMetricCollector( cluster, "hdfs", "datanode")
def __init__(self, cluster, rmc): MetricCollector.__init__(self, cluster, "yarn", "nodemanager") self.target = "-" self.rmc = rmc self.hadoop_nodemanager_metrics = {} for i in range(len(self.file_list)): self.hadoop_nodemanager_metrics.setdefault(self.file_list[i], {}) self.common_metric_collector = CommonMetricCollector( cluster, "yarn", "nodemanager")
def __init__(self, cluster, urls): MetricCollector.__init__(self, cluster, "hdfs", "journalnode") self.target = "-" self.urls = urls self.hadoop_journalnode_metrics = {} for i in range(len(self.file_list)): self.hadoop_journalnode_metrics.setdefault(self.file_list[i], {}) self.common_metric_collector = CommonMetricCollector( cluster, "hdfs", "journalnode") self.scrape_metrics = ScrapeMetrics(urls)
def __init__(self, cluster, urls, queue_regexp): MetricCollector.__init__(self, cluster, "yarn", "resourcemanager") self.target = "-" self.queue_regexp = queue_regexp self.nms = set() self.hadoop_resourcemanager_metrics = {} for i in range(len(self.file_list)): self.hadoop_resourcemanager_metrics.setdefault( self.file_list[i], {}) self.common_metric_collector = CommonMetricCollector( cluster, "yarn", "resourcemanager") self.scrape_metrics = ScrapeMetrics(urls)