From 3fc47a6fa3fd3f18ae31607d4abc495f5f3ef25a Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Mon, 14 Aug 2023 14:51:48 +0100 Subject: [PATCH] Enable consul metrics. --- hosts/common/consul.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/common/consul.nix b/hosts/common/consul.nix index 3f18ffd..27d7ff0 100644 --- a/hosts/common/consul.nix +++ b/hosts/common/consul.nix @@ -14,6 +14,10 @@ in server = server_enabled; bootstrap_expect = (builtins.length servers + 2) / 2; retry_join = builtins.filter (elem: elem != config.networking.hostName) servers; + telemetry = { + prometheus_retention_time = "24h"; + disable_hostname = true; + }; }; };