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