diff options
author | Quentin <quentin@deuxfleurs.fr> | 2020-11-30 08:31:17 +0100 |
---|---|---|
committer | Quentin <quentin@deuxfleurs.fr> | 2020-11-30 08:31:17 +0100 |
commit | 365849760df9a70be5d3dd9d4c477226610c5aee (patch) | |
tree | 88d408abdb604f069f28bbf26da4f6072495a367 /os | |
parent | de3e21101dfcb6e7c4f293a23e0ced33ed2fa5a9 (diff) | |
download | infrastructure-365849760df9a70be5d3dd9d4c477226610c5aee.tar.gz infrastructure-365849760df9a70be5d3dd9d4c477226610c5aee.zip |
Upgrade Nomad and expose telemetry
Diffstat (limited to 'os')
-rw-r--r-- | os/config/roles/nomad/tasks/main.yml | 2 | ||||
-rw-r--r-- | os/config/roles/nomad/templates/nomad.hcl.j2 | 7 |
2 files changed, 8 insertions, 1 deletions
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 +} |