Commit 3f2c1de2 by Torkel Ödegaard

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

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