Docs: added version note for rename by regex transformation. (#29735)

This commit is contained in:
Marcus Andersson
2020-12-10 07:53:52 +01:00
committed by GitHub
parent e313c0cea0
commit ac3bf352d9

View File

@@ -402,6 +402,8 @@ Conditions that are invalid or incompletely configured are ignored.
## Rename by regex
> **Note:** This transformation is only available in Grafana 7.4+.
Use this transformation to rename parts of the query results using a regular expression and replacement pattern.
You can specify a regular expression, which is only applied to matches, along with a replacement pattern that support back references. For example, let's imagine you're visualizing CPU usage per host and you want to remove the domain name. You could set the regex to `([^\.]+)\..+` and the replacement pattern to `$1`, `web-01.example.com` would become `web-01`.