Browse Source

feat(graphite): adds support for grep function

closes #1163
carl bergquist 10 years ago
parent
commit
48539c851e
1 changed files with 7 additions and 0 deletions
  1. 7 0
      public/app/plugins/datasource/graphite/gfunc.js

+ 7 - 0
public/app/plugins/datasource/graphite/gfunc.js

@@ -516,6 +516,13 @@ function (_, $) {
     defaultParams: ['exclude']
   });
 
+  addFuncDef({
+    name: "grep",
+    category: categories.Filter,
+    params: [{ name: "grep", type: 'string' }],
+    defaultParams: ['grep']
+  });
+
   addFuncDef({
     name: 'highestCurrent',
     category: categories.Filter,