Added related code to sf_notifier SL service
Change-Id: I97deb94d3e69d0452ba93778d11810327fe15a7f
Related-Bug: PROD-24686
diff --git a/prometheus/alertmanager/notification/salesforce.yml b/prometheus/alertmanager/notification/salesforce.yml
new file mode 100644
index 0000000..8beb374
--- /dev/null
+++ b/prometheus/alertmanager/notification/salesforce.yml
@@ -0,0 +1,23 @@
+parameters:
+ _param:
+ alertmanager_notification_salesforce_host: sf_notifier
+ alertmanager_notification_salesforce_port: ${prometheus:sf_notifier:uwsgi:bind_port}
+ prometheus:
+ alertmanager:
+ enabled: true
+ config:
+ route:
+ routes:
+ salesforce:
+ receiver: HTTP-salesforce
+ match_re:
+ - label: route
+ value: '(.*salesforce.*)'
+ continue: true
+ receiver:
+ HTTP-salesforce:
+ enabled: true
+ webhook_configs:
+ salesforce-vip:
+ url: "http://${_param:alertmanager_notification_salesforce_host}:${_param:alertmanager_notification_salesforce_port}/hook"
+ send_resolved: true
diff --git a/prometheus/sf_notifier/container.yml b/prometheus/sf_notifier/container.yml
new file mode 100644
index 0000000..4a2e8f5
--- /dev/null
+++ b/prometheus/sf_notifier/container.yml
@@ -0,0 +1,2 @@
+classes:
+- service.prometheus.sf_notifier.container