(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 we already have a datapoint for this metric, lets add
        the value. This is used when the logstash mode is enabled.
If we already have a datapoint for this metric lets add the value . This is used when the logstash mode is enabled .
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
def _set_or_sum_metric ( self , metrics , metric_path , value ) : if metric_path in metrics : metrics [ metric_path ] += value else : metrics [ metric_path ] = value