Skip to content

Commit cc3b928

Browse files
committed
Opentsdb queries broken if no alias is uses with tags/filters
1 parent 0f2fa33 commit cc3b928

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/app/plugins/datasource/opentsdb/datasource.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ function (angular, _, dateMath) {
332332
var tagData = [];
333333

334334
if (!_.isEmpty(md.tags)) {
335-
_.each(_.pairs(md.tags), function(tag) {
335+
_.each(_.toPairs(md.tags), function(tag) {
336+
console.log(tag);
336337
if (_.has(groupByTags, tag[0])) {
337338
tagData.push(tag[0] + "=" + tag[1]);
338339
}

0 commit comments

Comments
 (0)