diff options
author | pmikus <pmikus@cisco.com> | 2021-01-07 14:27:38 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-01-29 08:47:06 +0000 |
commit | 6717a3bc8b5fb81c1a19964fd367878230331457 (patch) | |
tree | 058db7055c94fbb0271cb089e15c83bd7c9a503c /resources/tools/testbed-setup/ansible/roles | |
parent | ba5dcdbecd4c009c832c2a186a58566a5ef4dc81 (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)
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 |