diff options
author | pmikus <pmikus@cisco.com> | 2020-06-03 10:29:25 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-06-03 13:44:26 +0000 |
commit | ad5bac567e8364cc29746f236d3d8e2573e4178e (patch) | |
tree | 0d099e79de1235161c4aefbf78a0e3ddbd0c3a96 /resources/tools/testbed-setup/ansible/roles/nomad/templates | |
parent | 638d32aed060bfe3db655f46c3d052a4bd3ec0cd (diff) |
Infra: Ansible Nomad
+ Prometheus Telemetry stanza
- ARM Softirons
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Ib7bf577ed0460ab5b79700ff0f8d52d5704cec59
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/nomad/templates')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/nomad/templates/telemetry.hcl.j2 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/nomad/templates/telemetry.hcl.j2 b/resources/tools/testbed-setup/ansible/roles/nomad/templates/telemetry.hcl.j2 new file mode 100644 index 0000000000..256c6999e9 --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/nomad/templates/telemetry.hcl.j2 @@ -0,0 +1,20 @@ +telemetry { + # Telemetry provider parameters + {% for key, value in nomad_telemetry_provider_parameters.items() -%} + {% if value|bool -%} + {{ key }} = {{ value | bool | lower }} + {% elif value|string or value == "" -%} + {{ key }} = "{{ value }}" + {% else %} + {{ key }} = {{ value }} + {% endif -%} + {% endfor -%} + + # Common parameters + disable_hostname = {{ nomad_disable_hostname | bool | lower }} + collection_interval = "{{ nomad_collection_interval }}" + use_node_name = {{ nomad_use_node_name | bool | lower }} + publish_allocation_metrics = {{ nomad_publish_allocation_metrics | bool | lower }} + publish_node_metrics = {{ nomad_publish_node_metrics | bool | lower }} + backwards_compatible_metrics = {{ nomad_backwards_compatible_metrics | bool | lower }} +} |