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"
|
||||
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`)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue