From 97f29680fd68902dd411f9a68aeb12978d2abb1c Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Mon, 14 Aug 2023 14:58:03 +0100 Subject: [PATCH] Enable nomad metrics. --- hosts/common/nomad.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/common/nomad.nix b/hosts/common/nomad.nix index 1469b5b..6e63615 100644 --- a/hosts/common/nomad.nix +++ b/hosts/common/nomad.nix @@ -29,6 +29,14 @@ in bootstrap_expect = (builtins.length servers + 2) / 2; server_join.retry_join = servers; }; + + telemetry = { + collection_interval = "1s"; + disable_hostname = true; + prometheus_metrics = true; + publish_allocation_metrics = true; + publish_node_metrics = true; + }; }; extraSettingsPaths = [ "/etc/nomad-alo.json" ];