mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: interpolate variables when creating alert rule from dashboard panel (#37201)
This commit is contained in:
@@ -344,7 +344,7 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
|
||||
policy: this.templateSrv.replace(query.policy ?? '', scopedVars, 'regex'),
|
||||
};
|
||||
|
||||
if (query.rawQuery) {
|
||||
if (query.rawQuery || this.isFlux) {
|
||||
expandedQuery.query = this.templateSrv.replace(query.query ?? '', scopedVars, 'regex');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user