mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix vector range
This commit is contained in:
parent
5910453e8a
commit
8a43d4e25c
@ -8,7 +8,7 @@ export class PromCompleter {
|
|||||||
labelNameCache: any;
|
labelNameCache: any;
|
||||||
labelValueCache: any;
|
labelValueCache: any;
|
||||||
|
|
||||||
identifierRegexps = [/[\[\]a-zA-Z0-9_:=]/];
|
identifierRegexps = [/\[/, /[a-zA-Z0-9_:]/];
|
||||||
|
|
||||||
constructor(private datasource: PrometheusDatasource) {
|
constructor(private datasource: PrometheusDatasource) {
|
||||||
this.labelQueryCache = {};
|
this.labelQueryCache = {};
|
||||||
@ -73,7 +73,7 @@ export class PromCompleter {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prefix === '[') {
|
if (token.type === 'paren.lparen' && token.value === '[') {
|
||||||
var vectors = [];
|
var vectors = [];
|
||||||
for (let unit of ['s', 'm', 'h']) {
|
for (let unit of ['s', 'm', 'h']) {
|
||||||
for (let value of [1,5,10,30]) {
|
for (let value of [1,5,10,30]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user