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.
This commit is contained in:
IamTheFij 2022-11-16 09:04:32 -08:00
parent f481e7b938
commit 080cea9637

View File

@ -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
},
]
}