From 200acff2a69bdc2efe07d71fdb4e990bc6716ae5 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Sat, 22 Jul 2017 22:21:59 +0300 Subject: [PATCH] docs: consolidateBy function reference --- docs/sources/reference/functions.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/sources/reference/functions.md b/docs/sources/reference/functions.md index 17e800a..69aba1b 100644 --- a/docs/sources/reference/functions.md +++ b/docs/sources/reference/functions.md @@ -197,3 +197,14 @@ replaceAlias(/.*CPU (.*) time/, $1) -> system backend01: CPU system time replaceAlias(/(.*): CPU (.*) time/, $1 - $2) -> backend01 - system ``` + +## Special + +### consolidateBy +``` +consolidateBy(consolidationFunc) +``` + +When a graph is drawn where width of the graph size in pixels is smaller than the number of datapoints to be graphed, plugin consolidates the values to to prevent line overlap. The consolidateBy() function changes the consolidation function from the default of average to one of `sum`, `min`, `max` or `count`. + +Valid function names are `sum`, `avg`, `min`, `max` and `count`.