mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prometheus editor: variable autocomplete support (PR #9988)
* prometheus ace editor, template variable support * minor fix * support [[var]] notation * don't remove last ] if token type is string * Revert "don't remove last ] if token type is string" This reverts commitbce5b2d56e. * Revert "support [[var]] notation" This reverts commit10012f8ffe. * fix token type and regex
This commit is contained in:
committed by
Alexander Zobnin
parent
eef01e3703
commit
c6fa0b90a7
@@ -43,7 +43,7 @@ class PrometheusQueryCtrl extends QueryCtrl {
|
||||
}
|
||||
|
||||
getCompleter(query) {
|
||||
return new PromCompleter(this.datasource);
|
||||
return new PromCompleter(this.datasource, this.templateSrv);
|
||||
}
|
||||
|
||||
getDefaultFormat() {
|
||||
|
||||
Reference in New Issue
Block a user