From 7f602feff4965f3a39228372a8905732d0f79b49 Mon Sep 17 00:00:00 2001 From: Andrew Widdersheim Date: Sun, 5 Jul 2015 21:19:12 -0400 Subject: [PATCH] Allow pipe ('|') in Graphite lexer Allow for Graphite lexer to understand metric names like 'net|usage_average'. --- public/app/plugins/datasource/graphite/lexer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/plugins/datasource/graphite/lexer.js b/public/app/plugins/datasource/graphite/lexer.js index ffb65121a60..457100b163e 100644 --- a/public/app/plugins/datasource/graphite/lexer.js +++ b/public/app/plugins/datasource/graphite/lexer.js @@ -120,6 +120,7 @@ define([ i >= 48 && i <= 57 || // 0-9 i === 36 || // $ i === 126 || // ~ + i === 124 || // | i >= 65 && i <= 90 || // A-Z i === 95 || // _ i === 45 || // -