diff options
author | 2021-01-07 14:27:38 +0000 | |
---|---|---|
committer | 2021-01-29 08:48:28 +0000 | |
commit | 024c95bc16a337be73a73be242ec7df300f21a12 (patch) | |
tree | 752e43fb239801bc63572031a6903827416084ce /resources/tools/testbed-setup/ansible/roles | |
parent | e70feeb9243e28f75b7df69e4ecacd9a1dcd064e (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)
(cherry picked from commit 2856c0a0c19319de146a93c27e106351faf1926c)
(cherry picked from commit 6717a3bc8b5fb81c1a19964fd367878230331457)
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/consul/tasks/main.yaml | 14 | ||||
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/consul/templates/telemetry.hcl.j2 | 3 |
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 |