Skip to content

Commit 262c341

Browse files
committed
fix(influxdb): fixed annotation queries containting template variables, fixes grafana#4602
1 parent 22b11d7 commit 262c341

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* **Graph Panel**: Fixed legend option max not updating, fixes [#4601](https://github.com/grafana/grafana/issues/4601)
1111
* **Graph Panel**: Fixed issue where newly added graph panels shared same axes config, fixes [#4582](https://github.com/grafana/grafana/issues/4582)
1212
* **Graph Panel**: Fixed issue with axis labels overlapping Y-axis, fixes [#4626](https://github.com/grafana/grafana/issues/4626)
13+
* **InfluxDB**: Fixed issue with templating query containing template variable, fixes [#4602](https://github.com/grafana/grafana/issues/4602)
1314

1415
# 3.0.0-beta2 (2016-04-04)
1516

public/app/plugins/datasource/influxdb/datasource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default class InfluxDatasource {
107107

108108
var timeFilter = this.getTimeFilter({rangeRaw: options.rangeRaw});
109109
var query = options.annotation.query.replace('$timeFilter', timeFilter);
110-
query = this.templateSrv.replace(query);
110+
query = this.templateSrv.replace(query, null, 'regex');
111111

112112
return this._seriesQuery(query).then(data => {
113113
if (!data || !data.results || !data.results[0]) {

0 commit comments

Comments
 (0)