فهرست منبع

fix(OpenTSDB): fixed issue with OpenTSDB and query to result matching, Fixes #2315

Torkel Ödegaard 10 سال پیش
والد
کامیت
3f2c1de28d
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      public/app/plugins/datasource/opentsdb/datasource.js

+ 3 - 0
public/app/plugins/datasource/opentsdb/datasource.js

@@ -50,6 +50,9 @@ function (angular, _, kbn) {
         var metricToTargetMapping = mapMetricsToTargets(response.data, options);
         var result = _.map(response.data, function(metricData, index) {
           index = metricToTargetMapping[index];
+          if (index === -1) {
+            index = 0;
+          }
           return transformMetricData(metricData, groupByTags, options.targets[index], options);
         });
         return { data: result };