along Metrics Statement
along metrics statement is useful when you join queries – it allows you to control what results are joined based on the value of one or more result fields. For more information, see Join Query Results.
<expression> [along <field>[, <field>, …]]
Queries #A and #B return the
Net_OutBytes metrics with the assigned
account and averaged over
account. Query #C calculates the difference of the pairs of time series from #A and #B whose
account value matches.
#A: metric=Net_InBytes account=* | avg by account
#B: metric=Net_OutBytes account=* | avg by account
#C: #B - #A along account