improves timeseries naming for moving average series

This commit is contained in:
carl bergquist 2015-12-09 14:58:26 +01:00
parent 0b285845d1
commit 0644bfe27c

View File

@ -197,7 +197,10 @@ function (_, queryDef) {
});
}
if (series.field) {
if (series.field && series.metric === 'moving_avg') {
var appliedAgg = _.findWhere(target.metrics, { id: series.field });
metricName += ' ' + queryDef.describeMetric(appliedAgg);
} else if (series.field) {
metricName += ' ' + series.field;
}