Skip to content

Commit

Permalink
fix(promtail): add a healtcheck to promtail
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Becker <[email protected]>
  • Loading branch information
brucellino committed Nov 24, 2022
1 parent 85d81a2 commit 5dd0dd8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion promtail.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5dd0dd8

Please sign in to comment.