Explorar el Código

allow graphite metrics name contain '~'

when a metrics name contains '~', id does not impact graph display.
but you can not use grafana UI to edit metrics with realtime
graphite query.
William Wei hace 10 años
padre
commit
76b517b361
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      public/app/plugins/datasource/graphite/lexer.js

+ 1 - 0
public/app/plugins/datasource/graphite/lexer.js

@@ -119,6 +119,7 @@ define([
     identifierStartTable[i] =
       i >= 48 && i <= 57 || // 0-9
       i === 36 ||           // $
+      i === 126 ||          // ~
       i >= 65 && i <= 90 || // A-Z
       i === 95 ||           // _
       i === 45 ||           // -