Browse Source

Merge pull request #5075 from mtanda/prometheus_templating_fix

(prometheus) fix metric find query
Carl Bergquist 9 năm trước cách đây
mục cha
commit
5aaaeb05a0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      public/app/plugins/datasource/prometheus/datasource.ts

+ 1 - 1
public/app/plugins/datasource/prometheus/datasource.ts

@@ -140,7 +140,7 @@ export function PrometheusDatasource(instanceSettings, $q, backendSrv, templateS
 
     var interpolated;
     try {
-      interpolated = templateSrv.replace(query);
+      interpolated = templateSrv.replace(query, {}, this.interpolateQueryExpr);
     } catch (err) {
       return $q.reject(err);
     }