docs: def _set_yarn_metrics_from_json(self, tags, metrics_json, yarn_metrics):
          """
          Parse the JSON response and set the metrics
          """
          for dict_path, metric in iteritems(yarn_metrics):
              metric_name, metric_type = metric
  
              metric_value = self._get_value_from_json(dict_path, metrics_json)
  
              if metric_value is not None:
                  self._set_metric(metric_name, metric_type, metric_value, tags)