From c1266abb98fcb92172d114bb71107a68a7dccaad Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Tue, 6 May 2014 08:38:09 +0200 Subject: [PATCH 1/2] Quote timeseries names to be able to have special character such as @ in a seriename. --- src/app/services/influxdb/influxdbDatasource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/influxdb/influxdbDatasource.js b/src/app/services/influxdb/influxdbDatasource.js index 7da26744418..5a7a36a7c31 100644 --- a/src/app/services/influxdb/influxdbDatasource.js +++ b/src/app/services/influxdb/influxdbDatasource.js @@ -62,7 +62,7 @@ function (angular, _, kbn) { query = queryElements.join(" "); } else { - var template = "select [[func]](\"[[column]]\") as \"[[column]]_[[func]]\" from [[series]] " + + var template = "select [[func]](\"[[column]]\") as \"[[column]]_[[func]]\" from \"[[series]]\" " + "where [[timeFilter]] [[condition_add]] [[condition_key]] [[condition_op]] [[condition_value]] " + "group by time([[interval]]) order asc"; From c9df61c43c45479295ab93440d7884fd629c0381 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Tue, 6 May 2014 08:42:49 +0200 Subject: [PATCH 2/2] Quote timeseries names to be able to have special character such as @ in a seriename. --- src/app/services/influxdb/influxdbDatasource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/influxdb/influxdbDatasource.js b/src/app/services/influxdb/influxdbDatasource.js index 5a7a36a7c31..c9031d9e225 100644 --- a/src/app/services/influxdb/influxdbDatasource.js +++ b/src/app/services/influxdb/influxdbDatasource.js @@ -93,7 +93,7 @@ function (angular, _, kbn) { }; InfluxDatasource.prototype.listColumns = function(seriesName) { - return this.doInfluxRequest('select * from ' + seriesName + ' limit 1').then(function(data) { + return this.doInfluxRequest('select * from "' + seriesName + '" limit 1').then(function(data) { if (!data) { return []; }