feat(elk): add health checks for Elasticsearch and Kibana services
This commit is contained in:
parent
ddfb2c16ca
commit
381a9973bf
1 changed files with 19 additions and 1 deletions
|
@ -127,6 +127,16 @@ job "elk" {
|
||||||
provider = "consul"
|
provider = "consul"
|
||||||
port = "http"
|
port = "http"
|
||||||
|
|
||||||
|
check {
|
||||||
|
type = "http"
|
||||||
|
protocol = "https"
|
||||||
|
tls_skip_verify = true
|
||||||
|
port = "web"
|
||||||
|
path = "/_cluster/health?local=true"
|
||||||
|
interval = "5s"
|
||||||
|
timeout = "2s"
|
||||||
|
}
|
||||||
|
|
||||||
tags = [
|
tags = [
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.http.routers.es.rule=Host(`es.brmartin.co.uk`)",
|
"traefik.http.routers.es.rule=Host(`es.brmartin.co.uk`)",
|
||||||
|
@ -364,6 +374,14 @@ job "elk" {
|
||||||
port = "web"
|
port = "web"
|
||||||
provider = "consul"
|
provider = "consul"
|
||||||
|
|
||||||
|
check {
|
||||||
|
type = "http"
|
||||||
|
port = "web"
|
||||||
|
path = "/api/status"
|
||||||
|
interval = "5s"
|
||||||
|
timeout = "2s"
|
||||||
|
}
|
||||||
|
|
||||||
tags = [
|
tags = [
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.http.routers.kibana.rule=Host(`kibana.brmartin.co.uk`)",
|
"traefik.http.routers.kibana.rule=Host(`kibana.brmartin.co.uk`)",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue