feat(elk): add health checks for Elasticsearch and Kibana services

This commit is contained in:
Ben Martin 2024-12-21 22:16:55 +00:00
parent ddfb2c16ca
commit 381a9973bf
Signed by: ben
GPG key ID: 859A655FCD290E4A

View file

@ -127,6 +127,16 @@ job "elk" {
provider = "consul"
port = "http"
check {
type = "http"
protocol = "https"
tls_skip_verify = true
port = "web"
path = "/_cluster/health?local=true"
interval = "5s"
timeout = "2s"
}
tags = [
"traefik.enable=true",
"traefik.http.routers.es.rule=Host(`es.brmartin.co.uk`)",
@ -364,6 +374,14 @@ job "elk" {
port = "web"
provider = "consul"
check {
type = "http"
port = "web"
path = "/api/status"
interval = "5s"
timeout = "2s"
}
tags = [
"traefik.enable=true",
"traefik.http.routers.kibana.rule=Host(`kibana.brmartin.co.uk`)",