This seems a pretty simple thing to achieve so apologies if it's been answered here a hundred times before.
If I have two metrics :
"state"
"swap"
Each metric has records from different hosts, so they both have a "host" label.
eg
1. state, label {host="machineA"} value 0
2. state, label {host="machineB"} value 1
3. swap, label {host="machineA"} value 1234
4. swap, label {host="machineb"} value 123
I want to filter my graph of "swap" so that any hosts with a "state" value of "0" are removed/ignored.
What's the trick?
Is the correct nomenclature for this "Filtering series A by series B"? (I'm still trying to get my head around the correct terminology to use).
Thanks in advance for your help.
Patrick