Added possibility to change default alert timeout for Alerta.

Fixes PROD-35069

Change-Id: Ib4ba98a0dc2106b9b4883addbb44ea6206a723c4
diff --git a/prometheus/alerta.sls b/prometheus/alerta.sls
index ec6bbe6..8cc8c3d 100644
--- a/prometheus/alerta.sls
+++ b/prometheus/alerta.sls
@@ -10,10 +10,13 @@
 
 alerta_config_file:
   file.managed:
-    - name: {{ alerta.config_dir }}/alerta.conf
-    - source: salt://prometheus/files/alerta/alerta.conf
+    - names:
+      - {{ alerta.config_dir }}/alerta.conf:
+        - source: salt://prometheus/files/alerta/alerta.conf
+        - mode: 755
+      - {{ alerta.config_dir }}/alertad.conf:
+        - source: salt://prometheus/files/alerta/alertad.conf
     - makedirs: True
-    - mode: 755
     - template: jinja
     - require:
       - file: alerta_config_dir
diff --git a/prometheus/files/alerta/alertad.conf b/prometheus/files/alerta/alertad.conf
new file mode 100644
index 0000000..f262eb4
--- /dev/null
+++ b/prometheus/files/alerta/alertad.conf
@@ -0,0 +1,2 @@
+{%- from "prometheus/map.jinja" import alerta with context %}
+ALERT_TIMEOUT = {{ alerta.get("timeouts", {}).get("alert", 86400) }}