Add prometheus, alertmanager, pushgateway configs
Change-Id: I7f146e0207ada58f0723b14d0a625a6bce67ea9f
diff --git a/metadata/service/alertmanager/container.yml b/metadata/service/alertmanager/container.yml
new file mode 100644
index 0000000..1fcf610
--- /dev/null
+++ b/metadata/service/alertmanager/container.yml
@@ -0,0 +1,39 @@
+applications:
+ - alertmanager
+parameters:
+ prometheus:
+ alertmanager:
+ enabled: true
+ bind:
+ address: 0.0.0.0
+ port: 9093
+ config:
+ global:
+ resolve_timeout: 5m
+ route:
+ group_by: ['alertname', 'region', 'service']
+ group_wait: 60s
+ group_interval: 5m
+ repeat_interval: 3h
+ receiver: HTTP-notification
+ inhibit_rules:
+ - source_match:
+ severity: 'down'
+ target_match:
+ severity: 'critical'
+ equal: ['region', 'service']
+ - source_match:
+ severity: 'down'
+ target_match:
+ severity: 'warning'
+ equal: ['region', 'service']
+ - source_match:
+ severity: 'critical'
+ target_match:
+ severity: 'warning'
+ equal: ['alertname', 'region', 'service']
+ receivers:
+ - name: 'HTTP-notification'
+ webhook_configs:
+ - url: http://127.0.0.1
+ send_resolved: true
diff --git a/metadata/service/server.yml b/metadata/service/pushgateway/container.yml
similarity index 64%
rename from metadata/service/server.yml
rename to metadata/service/pushgateway/container.yml
index 79283d9..28c24e6 100644
--- a/metadata/service/server.yml
+++ b/metadata/service/pushgateway/container.yml
@@ -1,6 +1,6 @@
applications:
- - prometheus
+ - pushgateway
parameters:
prometheus:
- server:
+ pushgateway:
enabled: true
diff --git a/metadata/service/server/container.yml b/metadata/service/server/container.yml
new file mode 100644
index 0000000..2269896
--- /dev/null
+++ b/metadata/service/server/container.yml
@@ -0,0 +1,27 @@
+applications:
+ - prometheus
+classes:
+ - service.prometheus.support
+parameters:
+ prometheus:
+ server:
+ enabled: true
+ bind:
+ port: 9090
+ address: 0.0.0.0
+ storage:
+ local:
+ engine: "persisted"
+ retention: "360h"
+ memory_chunks: 1048576
+ max_chunks_to_persist: 524288
+ num_fingerprint_mutexes: 4096
+ alertmanager:
+ notification_queue_capacity: 10000
+ config:
+ global:
+ scrape_interval: "15s"
+ scrape_timeout: "15s"
+ evaluation_interval: "1m"
+ external_labels:
+ region: 'region1'
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
new file mode 100644
index 0000000..76476fd
--- /dev/null
+++ b/metadata/service/support.yml
@@ -0,0 +1,5 @@
+parameters:
+ prometheus:
+ _support:
+ grafana:
+ enabled: true