docs: consolidateBy function reference

This commit is contained in:
Alexander Zobnin
2017-07-22 22:21:59 +03:00
parent 9e6a7f60b9
commit 200acff2a6

View File

@@ -197,3 +197,14 @@ replaceAlias(/.*CPU (.*) time/, $1) -> system
backend01: CPU system time backend01: CPU system time
replaceAlias(/(.*): CPU (.*) time/, $1 - $2) -> backend01 - system 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`.