Skip to content

Commit

Permalink
Merge pull request #1813 from marinnedea/patch-1
Browse files Browse the repository at this point in the history
Update functions.md
  • Loading branch information
ivanahuckova authored Jul 30, 2024
2 parents e490e10 + 9898f28 commit 62a292d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/sources/reference/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,13 @@ Replace metric name using pattern. Pattern is regex or regular string. If regex

For more details see [String.prototype.replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) function.

**NOTE:** Other transforms in Grafana Dashboard, like ["Join by label"](https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/transform-data/#join-by-labels) will overwrite the alias functions.
This will happen because the Grafana Dashboard transforms will be applied on the raw data returned by a query.
If such issues arise, you can always use other Dashboard transforms, like:
* [Rename by regex](https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/transform-data/#rename-by-regex) for fields names
* [Value mappings > Regex ](https://grafana.com/docs/grafana/latest/panels-visualizations/configure-value-mappings/#regex) for cell values


Examples:

```sh
Expand Down

0 comments on commit 62a292d

Please sign in to comment.