Explorar el Código

Merge pull request #1740 from craftytrickster/master

When performing a metric find query, the InfluxDb9 datasource needs a qu...
Torkel Ödegaard hace 10 años
padre
commit
437cd50039
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      public/app/plugins/datasource/influxdb/datasource.js

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

@@ -105,6 +105,9 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
         case 'TAG_VALUES':
         case 'TAG_VALUES':
           var tagValues = _.flatten(series.values);
           var tagValues = _.flatten(series.values);
           return _.map(tagValues, function(tagValue) { return { text: tagValue, expandable: true }; });
           return _.map(tagValues, function(tagValue) { return { text: tagValue, expandable: true }; });
+        default: // template values service does not pass in a a query type
+          var flattenedValues = _.flatten(series.values);
+          return _.map(flattenedValues, function(value) { return { text: value, expandable: true }; });
         }
         }
       });
       });
     };
     };