Add Alertmanager prometheus endpoint and replace ports with variables
Change-Id: I6dfdadf8ad19c3f372f9b65507dd11f30e2bae5e
diff --git a/prometheus/server/target/dns.yml b/prometheus/server/target/dns.yml
index fd56d1d..9e299ba 100644
--- a/prometheus/server/target/dns.yml
+++ b/prometheus/server/target/dns.yml
@@ -1,3 +1,8 @@
+classes:
+- service.prometheus.server.container
+- service.prometheus.alertmanager.container
+- service.prometheus.pushgateway.container
+
parameters:
prometheus:
server:
@@ -9,9 +14,14 @@
domain:
- 'tasks.monitoring_pushgateway'
type: A
- port: 9091
+ port: ${prometheus:pushgateway:bind:port}
- name: 'prometheus'
domain:
- 'tasks.monitoring_server'
type: A
- port: 9090
+ port: ${prometheus:server:bind:port}
+ - name: 'alertmanager'
+ domain:
+ - 'tasks.monitoring_alertmanager'
+ type: A
+ port: ${prometheus:alertmanager:bind:port}