Skip to content

Commit 9898f28

Browse files
authored
Update functions.md
Added a note on the Alias functions (e.g. `replaceAlias`) explaining a possible conflict with other Transforms applied on the Grafana Dashboard.
1 parent 29a8bde commit 9898f28

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/sources/reference/functions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,13 @@ Replace metric name using pattern. Pattern is regex or regular string. If regex
326326

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

329+
**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.
330+
This will happen because the Grafana Dashboard transforms will be applied on the raw data returned by a query.
331+
If such issues arise, you can always use other Dashboard transforms, like:
332+
* [Rename by regex](https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/transform-data/#rename-by-regex) for fields names
333+
* [Value mappings > Regex ](https://grafana.com/docs/grafana/latest/panels-visualizations/configure-value-mappings/#regex) for cell values
334+
335+
329336
Examples:
330337
```
331338
CPU system time

0 commit comments

Comments
 (0)