From 365849760df9a70be5d3dd9d4c477226610c5aee Mon Sep 17 00:00:00 2001 From: Quentin Date: Mon, 30 Nov 2020 08:31:17 +0100 Subject: Upgrade Nomad and expose telemetry --- os/config/roles/nomad/tasks/main.yml | 2 +- os/config/roles/nomad/templates/nomad.hcl.j2 | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'os/config/roles') diff --git a/os/config/roles/nomad/tasks/main.yml b/os/config/roles/nomad/tasks/main.yml index db519d5..c79013e 100644 --- a/os/config/roles/nomad/tasks/main.yml +++ b/os/config/roles/nomad/tasks/main.yml @@ -1,6 +1,6 @@ - name: "Set nomad version" set_fact: - nomad_version: 0.12.6 + nomad_version: 0.12.9 - name: "Download and install Nomad for x86_64" unarchive: diff --git a/os/config/roles/nomad/templates/nomad.hcl.j2 b/os/config/roles/nomad/templates/nomad.hcl.j2 index b5d5d46..d1c0720 100644 --- a/os/config/roles/nomad/templates/nomad.hcl.j2 +++ b/os/config/roles/nomad/templates/nomad.hcl.j2 @@ -32,3 +32,10 @@ client { } } +telemetry { + collection_interval = "1s" + disable_hostname = false + prometheus_metrics = true + publish_allocation_metrics = true + publish_node_metrics = true +} -- cgit v1.2.3