If you have one timeseries kube_pod_container_status_restarts_total, and another timeseries which has a 'team_name' label, and there is some common label between the two (pod id?), then you can join them in your alerting rule expr so that the PromQL result includes the 'team_name' label.
For more info: 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/left-joins-in-promql 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/75eb594d-4ade-4f25-9b9c-9344e4f34e25o%40googlegroups.com.

