From ec497ff457199d95ef0d9981389cfd049be5f0b0 Mon Sep 17 00:00:00 2001 From: Wojtek Bednarzak Date: Wed, 22 Mar 2023 23:40:30 +0000 Subject: [PATCH] ansible/templates: Enable Nomad Telemetry Enable Telemetry with prometheus metrics so that Nomad metrics can be scraped and alerts can be created if there's an issue. --- ansible/templates/nomad-base.hcl.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ansible/templates/nomad-base.hcl.j2 b/ansible/templates/nomad-base.hcl.j2 index 8595771..cba157b 100644 --- a/ansible/templates/nomad-base.hcl.j2 +++ b/ansible/templates/nomad-base.hcl.j2 @@ -8,3 +8,11 @@ advertise { rpc = "{{ ansible_host }}" serf = "{{ ansible_host }}" } + +telemetry { + collection_interval = "1s" + disable_hostname = true + prometheus_metrics = true + publish_allocation_metrics = true + publish_node_metrics = true +}