OpenTSDB: better matching for query -> query result series

This commit is contained in:
Torkel Ödegaard 2015-04-07 21:42:21 +02:00
parent c07d48d930
commit 1bd238191c

View File

@ -183,7 +183,9 @@ function (angular, _, kbn) {
return _.map(metrics, function(metricData) {
return _.findIndex(targets, function(target) {
return target.metric === metricData.metric &&
_.all(target.tags, function(tagV, tagK) { return metricData.tags[tagK] !== void 0; });
_.all(target.tags, function(tagV, tagK) {
return metricData.tags[tagK] === tagV || tagV === "*";
});
});
});
}