|
|
@@ -157,7 +157,6 @@ export class PrometheusDatasource {
|
|
|
|
|
|
// Only replace vars in expression after having (possibly) updated interval vars
|
|
|
query.expr = this.templateSrv.replace(target.expr, scopedVars, this.interpolateQueryExpr);
|
|
|
- query.expr = this.replaceNestedQuery(query.expr, options);
|
|
|
query.requestId = options.panelId + target.refId;
|
|
|
return query;
|
|
|
}
|
|
|
@@ -272,13 +271,6 @@ export class PrometheusDatasource {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- replaceNestedQuery(query, options) {
|
|
|
- return query.replace(/\#([A-Z])/g, (match, g1) => {
|
|
|
- let replaceTarget = options.targets.find((t) => { return t.refId === g1; });
|
|
|
- return replaceTarget ? replaceTarget.expr : match;
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
transformMetricData(md, options, start, end, step) {
|
|
|
var dps = [],
|
|
|
metricLabel = null;
|