Transforms: add sort by transformer (#30370)

This commit is contained in:
Ryan McKinley
2021-01-18 23:01:38 -08:00
committed by GitHub
parent 8c31e25926
commit bb65113c7d
7 changed files with 246 additions and 0 deletions

View File

@ -17,6 +17,7 @@ Grafana comes with the following transformations:
- [Add field from calculation](#add-field-from-calculation)
- [Labels to fields](#labels-to-fields)
- [Concatenate fields](#concatenate-fields)
- [Sort by](#sort-by)
- [Group by](#group-by)
- [Merge](#merge)
- [Rename by regex](#rename-by-regex)
@ -236,6 +237,14 @@ After merge:
| 2020-07-07 11:34:20 | ServerA | 10 | |
| 2020-07-07 11:34:20 | | 20 | EU |
## Sort by
> **Note:** This transformation is available in Grafana 7.4+.
This transformation will sort each frame by the configured field, When `reverse` is checked, the values will return in
the opposite order.
## Group by
> **Note:** This transformation is available in Grafana 7.2+.