feat(templating): prometheus now works with new template variable formating/escaping, #2918

This commit is contained in:
Torkel Ödegaard
2016-03-01 16:11:05 +01:00
parent 23a136d9ef
commit d1bac6cde0
5 changed files with 5 additions and 6 deletions

View File

@@ -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;

View File

@@ -4,6 +4,5 @@
"id": "prometheus",
"metrics": true,
"annotations": true,
"defaultMatchFormat": "pipe"
"annotations": true
}