docs: consolidateBy function reference
This commit is contained in:
@@ -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`.
|
||||||
|
|||||||
Reference in New Issue
Block a user