From d6bdfbed5fc8b35cb10d6092625c1d1cd78d30d3 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 7 Mar 2021 21:36:27 +0100 Subject: Expose prometheus metrics on Consul --- os/config/roles/consul/templates/consul.json.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os') diff --git a/os/config/roles/consul/templates/consul.json.j2 b/os/config/roles/consul/templates/consul.json.j2 index a55d351..6172cc4 100644 --- a/os/config/roles/consul/templates/consul.json.j2 +++ b/os/config/roles/consul/templates/consul.json.j2 @@ -27,5 +27,9 @@ "raft_multiplier": 10, "rpc_hold_timeout": "30s", "leave_drain_time": "30s" + }, + "telemetry": { + "disable_hostname": true, + "prometheus_retention_time": "2h" } } -- cgit v1.2.3