From 080cea963771cc976e9dc916da069375593d1066 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 16 Nov 2022 09:04:32 -0800 Subject: [PATCH] Fix minitor Healthcheck was failing due to wrong path and log alert was failing due to the config file being templated by Nomad. Updated to use a different delimiter. --- services/main.tf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/services/main.tf b/services/main.tf index 7d73512..a7edad5 100644 --- a/services/main.tf +++ b/services/main.tf @@ -57,6 +57,7 @@ module "minitor" { image = "iamthefij/minitor-go:1.1" service_port = 8080 metrics_port_name = "main" + healthcheck_path = "/metrics" use_vault = true templates = [ @@ -71,9 +72,11 @@ module "minitor" { env = true }, { - data = file("${path.module}/minitor-config.yml") - dest = "config.yml" - mount = false + data = file("${path.module}/minitor-config.yml") + left_delimiter = "[[" + right_delimiter = "]]" + dest = "config.yml" + mount = false }, ] }