Add Pushkin notification configuration
Change-Id: I7615124151ab023d5c0f8871971ff7ca7e220ff2
diff --git a/prometheus/alertmanager/notification/pushkin.yml b/prometheus/alertmanager/notification/pushkin.yml
new file mode 100644
index 0000000..3d3332d
--- /dev/null
+++ b/prometheus/alertmanager/notification/pushkin.yml
@@ -0,0 +1,30 @@
+parameters:
+ _param:
+ alertmanager_notification_pushkin_host: ${_param:haproxy_pushkin_bind_host}
+ alertmanager_notification_pushkin_port: ${_param:haproxy_pushkin_bind_port}
+parameters:
+ prometheus:
+ alertmanager:
+ config:
+ route:
+ group_by: ['region', 'service']
+ group_wait: 60s
+ group_interval: 5m
+ repeat_interval: 3h
+ receiver: pushkin_notification
+ routes:
+ - match:
+ route: email
+ receiver: email_notification
+ - match:
+ route: salesforce
+ receiver: salesforce_notification
+ receivers:
+ - name: salesforce_notification
+ webhook_configs:
+ - url: "${_param:alertmanager_notification_pushkin_host}:${_param:alertmanager_notification_pushkin_port}/webhook?app=stacklight&route=salesforce&cluster_id=id"
+ send_resolved: true
+ - name: pushkin_notification
+ webhook_configs:
+ - url: "${_param:alertmanager_notification_pushkin_host}:${_param:alertmanager_notification_pushkin_port}/webhook?app=stacklight&route=email&cluster_id=id"
+ send_resolved: true