It has to be done in a query - the relabelling phase of a scrape job cannot 
see other metrics.

What you are looking for is one-to-many queries, which can pick up labels 
from the "one" side and apply them to the "many":

https://www.robustperception.io/how-to-have-labels-for-machine-roles
https://www.robustperception.io/exposing-the-software-version-to-prometheus
https://prometheus.io/docs/prometheus/latest/querying/operators/#many-to-one-and-one-to-many-vector-matches
https://www.robustperception.io/left-joins-in-promql

> I have tried doing a join but it only seems to bring in one of the 
`ltmPoolMbrStatusEnabledState` and `ltmPoolMbrStatusAvailState` metrics 
depending on if its a left or right join, but I would like both to appear.

Can you show what query you did, the raw metrics which it used, what result 
you got, and what you wanted to get instead?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/fd3bed6e-aac7-4c29-aea3-d6fd994624bdn%40googlegroups.com.

Reply via email to