Commit 0644bfe2 by carl bergquist

improves timeseries naming for moving average series

parent 0b285845
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment