content/flux/v0/stdlib/internal/promql/labelreplace.md
promql.labelReplace() implements functionality equivalent to
PromQL's label_replace() function.
Important: The internal/promql package is not meant for external use.
(
<-tables: stream[{A with _value: float}],
destination: string,
regex: string,
replacement: string,
source: string,
) => stream[{B with _value: float}]
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
Input data. Default is piped-forward data (<-).
({{< req >}}) Input label.
({{< req >}}) Output label.
({{< req >}}) Pattern as a regex string.
({{< req >}}) Replacement value.