From 5dd0dd821697faae00cf41734d698d0717416dff Mon Sep 17 00:00:00 2001 From: Bruce Becker Date: Thu, 24 Nov 2022 13:18:08 +0100 Subject: [PATCH] fix(promtail): add a healtcheck to promtail Signed-off-by: Bruce Becker --- promtail.nomad | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/promtail.nomad b/promtail.nomad index fec1dc9..ee6546b 100644 --- a/promtail.nomad +++ b/promtail.nomad @@ -48,10 +48,24 @@ job "promtail" { timeout = "2s" } + check { + name = "Promtail HTTP" + type = "http" + path = "/targets" + interval = "10s" + timeout = "5s" + + check_restart { + limit = 2 + grace = "60s" + ignore_warnings = false + } + } + } restart { - attempts = 3 + attempts = 2 interval = "10m" delay = "15s" mode = "delay"