Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backend] Merge 'master' changes into the backend #875

Merged
merged 28 commits into from
Jan 15, 2020
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fe943ac
CI: fix shellcheck issues (#789)
mjtrangoni Oct 4, 2019
9cf1323
annotations: fix options in grafana 6.x, fix #813
alexanderzobnin Oct 8, 2019
a652eaf
fix function editor in Grafana 6.4, closes #810
alexanderzobnin Oct 9, 2019
ca50d0d
add typings for grafana packages
alexanderzobnin Oct 9, 2019
1827aa9
Add $__range_series variable for calculating function over the whole …
alexanderzobnin Oct 9, 2019
1d13520
fix tests
alexanderzobnin Oct 9, 2019
42d93b4
Don't set alert styles for react panels, fix #823
alexanderzobnin Oct 28, 2019
51d423e
docs: add range variables
alexanderzobnin Oct 28, 2019
bc1453e
docs: percentile reference
alexanderzobnin Oct 28, 2019
bcbbc97
fix codespell
alexanderzobnin Oct 28, 2019
5afeda6
Range-related variables #814
alexanderzobnin Oct 28, 2019
d09830f
update packages (build with node 12)
alexanderzobnin Dec 13, 2019
cf9780c
update circleci node image to 12
alexanderzobnin Dec 25, 2019
c1db914
fix test configuration (babel)
alexanderzobnin Dec 25, 2019
ff4ad19
Fix 817 (#851)
alexanderzobnin Dec 25, 2019
68aa093
build(deps-dev): bump lodash from 4.17.10 to 4.17.13 (#852)
dependabot[bot] Dec 26, 2019
4fcef29
fix packages security alerts
alexanderzobnin Dec 26, 2019
1e6ca2d
problems: fix tags adding and removal
alexanderzobnin Dec 26, 2019
90a9115
fix adding func from typeahead, closes #468
alexanderzobnin Dec 26, 2019
51ef6f7
update change log
alexanderzobnin Dec 26, 2019
90b8bfa
bump plugin version to 3.10.5
alexanderzobnin Dec 26, 2019
d54d6d2
problems: fix tag removal (list layout)
alexanderzobnin Dec 30, 2019
dd28b28
Fix percentile() function, closes #862 (#863)
mr-ns Jan 11, 2020
fe0c5cf
Update copyright, happy New Year!
alexanderzobnin Jan 11, 2020
4f24b2b
fix not acknowledged problem color with a message (#858)
memfiz Jan 13, 2020
82cfda6
Variable query editor (#856)
alexanderzobnin Jan 13, 2020
ef36b91
Merge remote-tracking branch 'upstream/master' into backend-rebase
Jan 14, 2020
ee30f7d
Fixes for backend
Jan 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: percentile reference
alexanderzobnin committed Oct 28, 2019

Verified

This commit was signed with the committer’s verified signature.
alexanderzobnin Alexander Zobnin
commit bc1453e38499bb9f7da090f13f1dd17742428e3a
20 changes: 18 additions & 2 deletions docs/sources/reference/functions.md
Original file line number Diff line number Diff line change
@@ -16,6 +16,8 @@ groupBy($__range, avg)
percentile($__range_series, 95) - 95th percentile over all values
```

---

## Transform


@@ -25,7 +27,7 @@ percentile($__range_series, 95) - 95th percentile over all values
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:
```
@@ -139,7 +141,7 @@ Replaces `null` values with N
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:
```
@@ -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(interval)