Joining labels from another metric

# This query demonstrates how to join labels from another metric.
# Here we start with the metric "snmp_qrV264KBytesUsed" and since it only has 
# a label "qrV2Volume" which is an ID, we join the metric "qrV2PathName" which 
# also has the label "qrV2Volume" BUT also has a label "qrV2PathName"

snmp_qrV264KBytesUsed
+ on (qrV2Index,qrV2Volume,instance) group_left (qrV2PathName)
(
    0 * snmp_qrV2PathName # this is bogus, we only want the labels "eg: + 0"
)

ignore resets

TODO: Justin, this below is so stupid, fix this.
1-xxx??? really?! why not 1/x so that when the result is 0 there is a divide by zero error which leads to nil....

#Here we discard the "increase series" if we also observe a reset of the 
#underlying time series at the same time:

increase(score_requests{instance="A"}[5m])
    * on(instance)
(
    # 1 minus...
    1 - (
        # ...1 (if resets is, or is greater than 1)
        resets(score_requests{instance="A"}[5m]) >= bool 1
    ) 
        # If result from 1 - ??? = 0, discard the multiplier
        # so that we have Nil values in our results instead of 0.
        != 0
)