docs: percentile reference

This commit is contained in:
Alexander Zobnin
2019-10-28 12:14:11 +03:00
parent 51d423e586
commit bc1453e384

View File

@@ -16,6 +16,8 @@ groupBy($__range, avg)
percentile($__range_series, 95) - 95th percentile over all values percentile($__range_series, 95) - 95th percentile over all values
``` ```
---
## Transform ## Transform
@@ -25,7 +27,7 @@ percentile($__range_series, 95) - 95th percentile over all values
groupBy(interval, function) groupBy(interval, function)
``` ```
Takes each timeseries and consolidate its points falled in given _interval_ into one point using _function_, which can be one of: _avg_, _min_, _max_, _median_. Takes each timeseries and consolidate its points fallen in the given _interval_ into one point using _function_, which can be one of: _avg_, _min_, _max_, _median_.
Examples: Examples:
``` ```
@@ -139,7 +141,7 @@ Replaces `null` values with N
aggregateBy(interval, function) aggregateBy(interval, function)
``` ```
Takes all timeseries and consolidate all its points falled in given _interval_ into one point using _function_, which can be one of: _avg_, _min_, _max_, _median_. Takes all timeseries and consolidate all its points fallen in the given _interval_ into one point using _function_, which can be one of: _avg_, _min_, _max_, _median_.
Examples: Examples:
``` ```
@@ -157,6 +159,20 @@ This will add metrics together and return the sum at each datapoint. This method
--- ---
### _percentile_
```
percentile(interval, N)
```
Takes all timeseries and consolidate all its points fallen in the given _interval_ into one point by Nth percentile.
Examples:
```
percentile(1h, 99)
percentile($__range_series, 95) - 95th percentile over all values
```
---
### _average_ ### _average_
``` ```
average(interval) average(interval)