--
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+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAKH5-WFvsL9o7snV2LY7ccgO1D%2BVRfs8HGzS8o%2B7cBb2X2J3Yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
I'm not sure what you mean by traps. Prometheus doesn't support SNMP trap events.Are you talking about alerts? What alerts have you configured in your rules files?
Ben,I have the following alerts specified in alert.rules:ALERT system_downIF up == 0FOR 1mLABELS { severity="critical" }ANNOTATIONS {summary = "System is down",description = "System has been unreachable for more than 1 minute.",}What I wish to do is also send trap along with the notification. I was going through the link below:However, I am not sure how to incorporate these Notifications. Should I be modifying the alert.rules file to have these incorporated?
On Tue, Jun 13, 2017 at 4:49 PM, Ben Kochie <sup...@gmail.com> wrote:
I'm not sure what you mean by traps. Prometheus doesn't support SNMP trap events.Are you talking about alerts? What alerts have you configured in your rules files?
Oh, that makes much more sense.You're not sending to Prometheus, you're sending from Prometheus via the alertmanager.You will need to set up the trap webhook server somewhere in your network, and add the URL that it provides as a webhook config in the alertmanager.yml..https://prometheus.io/docs/alerting/configuration/#<webhook_config>