label_join_sorted(up{job="api-server",src1="12",src2="7",src3="9"}, "foo", "_", "src1", "src2", "src3")
It will help me write alarming rules where I can do group by based on the composite label-value. I am not sure if we can achieve it today using UNLESS clause or so. Let me elaborate with an example to understand why this is a requirement. Let's consider that are two services or devices which are connected as follows:
A------B
Suppose the logical/physical connection between A or B goes down, metrics collected from/for each end-point can potentially trigger an alarm. Metric from A will generate an alarm with labels - local node is A and remote node is B. Metric from B will generate an alarm with swapped values. Since the underlying issue could be same, we don't want to generate both the alarms because JIRA fails to de-dup such issues more often than not.
Thanks,
Dhiman
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAB2OGjzJY8hHBUXWRsTqQ4EuDt4kFRSiordgfdS3BD1-S15-Tg%40mail.gmail.com.