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.