as

Input Stack:
replacement: String
original: String
TimeSeriesExpr
Output Stack:
TimeSeriesExpr
 
 

Map a tag key name to an alternate name. This can be useful for cases where it is desirable to perform a binary math operation, but the two sides use different tag keys for the same concept. The common IPC metrics are an example where it might be desirable to compare RPS for servers and their clients. The server side RPS would group by nf.app while the client side view would group by ipc.server.app.

BeforeAfter
name,sps,:eq,
(,nf.cluster,),:by
name,sps,:eq,
(,nf.cluster,),:by,
nf.cluster,c,:as,
$c,:legend