Brian,
I added the group_left below as highlighted. However, it didn’t work as 
expected in the output. Any advice where was wrong?
summary: Host out of memory (instance {{ $labels.instance }} 
group_left(nodename) node_uname_info{job="node-exporter-vm”})





Output:
"commonAnnotations_summary":"Host out of memory (instance 172.25.35.85:9100 
group_left(nodename) node_uname_info{job=\"node-exporter-vm\"})"






> On Sep 1, 2020, at 1:49 AM, Brian Candler <b.cand...@pobox.com> wrote:
> 
> You can join your query with node_uname_info, using group_left, so that the 
> query result gains additional labels from node_uname_info.  The approach is 
> described here:
> 
> https://www.robustperception.io/how-to-have-labels-for-machine-roles 
> <https://www.robustperception.io/how-to-have-labels-for-machine-roles>
> https://www.robustperception.io/exposing-the-software-version-to-prometheus 
> <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://prometheus.io/docs/prometheus/latest/querying/operators/#many-to-one-and-one-to-many-vector-matches>
> 
> -- 
> 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 prometheus-users+unsubscr...@googlegroups.com 
> <mailto:prometheus-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/prometheus-users/2c849844-a562-4546-adeb-031d8bc0fa37o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/prometheus-users/2c849844-a562-4546-adeb-031d8bc0fa37o%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/84BA239D-585C-4003-9B00-AFD81A1A3400%40gmail.com.

Reply via email to