mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(templating): prometheus now works with new template variable formating/escaping, #2918
This commit is contained in:
@@ -52,7 +52,7 @@ export function PrometheusDatasource(instanceSettings, $q, backendSrv, templateS
|
||||
}
|
||||
|
||||
var query: any = {};
|
||||
query.expr = templateSrv.replace(target.expr, options.scopedVars);
|
||||
query.expr = templateSrv.replace(target.expr, options.scopedVars, 'regex');
|
||||
|
||||
var interval = target.interval || options.interval;
|
||||
var intervalFactor = target.intervalFactor || 1;
|
||||
|
||||
@@ -4,6 +4,5 @@
|
||||
"id": "prometheus",
|
||||
|
||||
"metrics": true,
|
||||
"annotations": true,
|
||||
"defaultMatchFormat": "pipe"
|
||||
"annotations": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user