def analyze_metrics(metric_task, metrics):
  if 'beans' not in metrics:
    return
  # analyze hbase metric
  if metric_task.job.cluster.service.name == 'hbase':
    start_time = time.time()
    if metric_task.job.name == 'master':
      analyze_hbase_master_metrics(metric_task, metrics)
    elif metric_task.job.name == 'regionserver':
      analyze_hbase_region_server_metrics(metric_task, metrics)

    logger.info("%r spent %f seconds for analyzing metrics for hbase",
      metric_task, time.time() - start_time)
dataset/ETHPy150Open XiaoMi/minos/owl/collector/management/commands/metrics_updater.py/analyze_metrics/original