Hi all,

We are attempting to set up alerting with Prometheus and Alertmanager using 
some SNMP data. The basic use case is that we would like to group by a 
substring of label data rather than an entire label. Let's say our 
interfaces have the ifAlias label in the following format:
ifAlias="<brief description> - device 1 port 5 to device 2 port 7 - <cable 
ID>" and I want to group alerts only by "device 1 port 5 to device 2 port 
7" (assuming this description is consistent across  both devices), leaving 
the rest of the description and cableID out.

Is there a way to do this? We have not had success extracting this as a 
separate label through snmp_exporter. I thought potentially we could do 
some regex matching under the group_by rules with Alertmanager, but I 
haven't seen any documentation/examples showing how to do this either.

Let me know if there are any files I should attach.

-- 
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/31b5a66a-0aa5-432b-b527-764ac392e1d4n%40googlegroups.com.

Reply via email to