aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-01-07 14:27:38 +0000
committerPeter Mikus <pmikus@cisco.com>2021-01-29 08:46:14 +0000
commit2856c0a0c19319de146a93c27e106351faf1926c (patch)
treeb09813999df89e4120704d1701633f8547d7b8fa /resources
parentdae934efdf9c773b90cc4a9595d217dd55035561 (diff)
Infra: Monitoring capability
+ Monitoring SOA + Nomad alertmanager job + Nomad prometheus job + Nomad grafana job Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I0b32e9c87276ba1a2d4a5322816f3473c737eae2 (cherry picked from commit a44eef233de959c5679602dc6cd1ed866d6abc14)
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/consul/tasks/main.yaml14
-rw-r--r--resources/tools/testbed-setup/ansible/roles/consul/templates/telemetry.hcl.j23
2 files changed, 15 insertions, 2 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/consul/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/consul/tasks/main.yaml
index 9d1ca1980d..f87590edb7 100644
--- a/resources/tools/testbed-setup/ansible/roles/consul/tasks/main.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/consul/tasks/main.yaml
@@ -125,6 +125,16 @@
tags:
- consul-conf
+- name: Conf - Telemetry Configuration
+ template:
+ src: telemetry.hcl.j2
+ dest: "{{ consul_config_dir }}/telemetry.hcl"
+ owner: "{{ consul_user }}"
+ group: "{{ consul_group }}"
+ mode: 0644
+ tags:
+ - consul-conf
+
- name: Conf - Services Configuration
template:
src: services.json.j2
@@ -156,8 +166,8 @@
owner: "root"
group: "root"
mode: 0644
- notify:
- - "Restart Consul"
+# notify:
+# - "Restart Consul"
# - "Stop Systemd-resolved"
# - "Restart Nomad"
tags:
diff --git a/resources/tools/testbed-setup/ansible/roles/consul/templates/telemetry.hcl.j2 b/resources/tools/testbed-setup/ansible/roles/consul/templates/telemetry.hcl.j2
new file mode 100644
index 0000000000..ec7fabc9da
--- /dev/null
+++ b/resources/tools/testbed-setup/ansible/roles/consul/templates/telemetry.hcl.j2
@@ -0,0 +1,3 @@
+telemetry {
+ prometheus_retention_time = "24h"
+} \ No newline at end of file