aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-03-07 21:36:27 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-03-07 21:36:27 +0100
commitd6bdfbed5fc8b35cb10d6092625c1d1cd78d30d3 (patch)
tree09ce874fc408ecfde850026847e75fa22ea171f5
parent255e3fd2d74d80903beea17217f57b32171fbe99 (diff)
downloadinfrastructure-d6bdfbed5fc8b35cb10d6092625c1d1cd78d30d3.tar.gz
infrastructure-d6bdfbed5fc8b35cb10d6092625c1d1cd78d30d3.zip
Expose prometheus metrics on Consul
-rw-r--r--os/config/roles/consul/templates/consul.json.j24
1 files changed, 4 insertions, 0 deletions
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"
}
}