mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 23:55:47 -06:00
allow ":" character for metric name
This commit is contained in:
parent
45a572ebd8
commit
ebebbddb2d
@ -8,7 +8,7 @@ export class PromCompleter {
|
||||
labelNameCache: any;
|
||||
labelValueCache: any;
|
||||
|
||||
identifierRegexps = [/[\[\]a-zA-Z_0-9=]/];
|
||||
identifierRegexps = [/[\[\]a-zA-Z0-9_:=]/];
|
||||
|
||||
constructor(private datasource: PrometheusDatasource) {
|
||||
this.labelQueryCache = {};
|
||||
|
@ -43,7 +43,7 @@ var PrometheusHighlightRules = function() {
|
||||
regex : "\\d+[smhdwy]"
|
||||
}, {
|
||||
token : keywordMapper,
|
||||
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
||||
regex : "[a-zA-Z_:][a-zA-Z0-9_:]*"
|
||||
}, {
|
||||
token : "keyword.operator",
|
||||
regex : "\\+|\\-|\\*|\\/|%|\\^|=|==|!=|<=|>=|<|>|=\\~|!\\~"
|
||||
|
Loading…
Reference in New Issue
Block a user