Просмотр исходного кода

opentsdb: fix for OpenTSDB and multi value template variable in metric field, fixes #7754

Torkel Ödegaard 8 лет назад
Родитель
Сommit
aee8f0b75e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/app/plugins/datasource/opentsdb/datasource.js

+ 1 - 1
public/app/plugins/datasource/opentsdb/datasource.js

@@ -372,7 +372,7 @@ function (angular, _, dateMath) {
       }
 
       var query = {
-        metric: templateSrv.replace(target.metric, options.scopedVars),
+        metric: templateSrv.replace(target.metric, options.scopedVars, 'pipe'),
         aggregator: "avg"
       };