mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(OpenTSDB): fixed issue with OpenTSDB and query to result matching, Fixes #2315
This commit is contained in:
parent
c2da54139a
commit
3f2c1de28d
@ -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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user