From 866ec881dadb777f785dffb08ebffaa25209eec3 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 27 Apr 2025 07:05:09 +0000 Subject: [PATCH] chore(elk): define health and readiness checks for kibana - status endpoint checks for readiness of underlying elastic nodes --- modules/elk/jobspec.nomad.hcl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/elk/jobspec.nomad.hcl b/modules/elk/jobspec.nomad.hcl index 4aa05f6..75e2e3b 100644 --- a/modules/elk/jobspec.nomad.hcl +++ b/modules/elk/jobspec.nomad.hcl @@ -243,13 +243,21 @@ job "elk" { provider = "consul" check { - type = "http" + type = "tcp" port = "web" - path = "/api/status" interval = "5s" timeout = "2s" } + check { + type = "http" + port = "web" + path = "/api/status" + interval = "5s" + timeout = "2s" + on_update = "ignore" + } + tags = [ "traefik.enable=true", "traefik.http.routers.kibana.rule=Host(`kibana.brmartin.co.uk`)",