Add VictorOps alert notification capability

This commit is contained in:
ichekrygin
2016-10-27 12:45:55 -07:00
parent 42167a65c6
commit b0620a9d4b
4 changed files with 106 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ var (
M_Alerting_Notification_Sent_Email Counter
M_Alerting_Notification_Sent_Webhook Counter
M_Alerting_Notification_Sent_PagerDuty Counter
M_Alerting_Notification_Sent_Victorops Counter
// Timers
M_DataSource_ProxyReq_Timer Timer
@@ -110,6 +110,7 @@ func initMetricVars(settings *MetricSettings) {
M_Alerting_Notification_Sent_Email = RegCounter("alerting.notifications_sent", "type", "email")
M_Alerting_Notification_Sent_Webhook = RegCounter("alerting.notifications_sent", "type", "webhook")
M_Alerting_Notification_Sent_PagerDuty = RegCounter("alerting.notifications_sent", "type", "pagerduty")
M_Alerting_Notification_Sent_Victorops = RegCounter("alerting.notifications_sent", "type", "victorops")
// Timers
M_DataSource_ProxyReq_Timer = RegTimer("api.dataproxy.request.all")