code: def _set_or_sum_metric(self, metrics, metric_path, value):
          
          if metric_path in metrics:
              metrics[metric_path] += value
          else:
              metrics[metric_path] = value
docs: If we already have a datapoint for this metric, lets add
          the value. This is used when the logstash mode is enabled.