Fix health endpoint for prometheus and alertmanager
This commit is contained in:
parent
46023974fb
commit
5d46db4a93
|
@ -27,7 +27,7 @@ job "[[ .instance ]]-services" {
|
|||
name = "health"
|
||||
type = "http"
|
||||
expose = true
|
||||
path = "/-/healthy"
|
||||
path = "[[ if eq "" (urlParse $c.public_url).Path ]]/[[ else ]][[ (urlParse $c.public_url).Path ]][[ end ]]-/healthy"
|
||||
interval = "20s"
|
||||
timeout = "8s"
|
||||
check_restart {
|
||||
|
@ -62,7 +62,7 @@ job "[[ .instance ]]-services" {
|
|||
"--web.console.libraries=/opt/prometheus/console_libraries",
|
||||
"--web.console.templates=/opt/prometheus/consoles",
|
||||
"--web.external-url=[[ $c.public_url ]]",
|
||||
"--web.route-prefix=[[ if eq "" (urlParse $c.public_url).Path ]]/[[ else ]](urlParse $c.public_url).Path[[ end ]]"
|
||||
"--web.route-prefix=[[ if eq "" (urlParse $c.public_url).Path ]]/[[ else ]][[ (urlParse $c.public_url).Path ]][[ end ]]"
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -209,7 +209,7 @@ _EOT
|
|||
name = "health"
|
||||
type = "http"
|
||||
expose = true
|
||||
path = "/-/healthy"
|
||||
path = "[[ if eq "" (urlParse $c.public_url).Path ]]/[[ else ]][[ (urlParse $c.public_url).Path ]][[ end ]]-/healthy"
|
||||
interval = "20s"
|
||||
timeout = "8s"
|
||||
check_restart {
|
||||
|
|
Loading…
Reference in New Issue