Strip prefix with Traefik
This commit is contained in:
parent
4aed1378b2
commit
e01febeb09
|
@ -186,7 +186,6 @@ _EOT
|
|||
"--web.console.libraries=/opt/prometheus/console_libraries",
|
||||
"--web.console.templates=/opt/prometheus/consoles",
|
||||
"--web.external-url=https://prometheus.example.org",
|
||||
"--web.route-prefix=/"
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -1662,7 +1661,6 @@ exec alertmanager \
|
|||
--config.file=/secrets/alertmanager.yml \
|
||||
--storage.path=/data \
|
||||
--web.external-url=https://alert.example.org \
|
||||
--web.route-prefix=/ \
|
||||
--web.listen-address=0.0.0.0:{{ env "NOMAD_ALLOC_PORT_web-tls" }} \
|
||||
--cluster.listen-address=0.0.0.0:{{ env "NOMAD_ALLOC_PORT_cluster" }} \
|
||||
--cluster.advertise-address={{ env "NOMAD_HOST_ADDR_cluster" }} \
|
||||
|
|
|
@ -27,7 +27,7 @@ job "[[ .instance ]]-services" {
|
|||
name = "health"
|
||||
type = "http"
|
||||
expose = true
|
||||
path = "[[ (urlParse $c.public_url).Path | regexp.Replace "/$" "" ]]/-/healthy"
|
||||
path = "/-/healthy"
|
||||
interval = "20s"
|
||||
timeout = "8s"
|
||||
check_restart {
|
||||
|
@ -62,7 +62,6 @@ 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 ]]"
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -209,7 +208,7 @@ _EOT
|
|||
name = "health"
|
||||
type = "http"
|
||||
expose = true
|
||||
path = "[[ (urlParse $c.public_url).Path | regexp.Replace "/$" "" ]]/-/healthy"
|
||||
path = "/-/healthy"
|
||||
interval = "20s"
|
||||
timeout = "8s"
|
||||
check_restart {
|
||||
|
|
|
@ -6,7 +6,6 @@ exec alertmanager \
|
|||
--config.file=/secrets/alertmanager.yml \
|
||||
--storage.path=/data \
|
||||
--web.external-url=[[ .public_url ]] \
|
||||
--web.route-prefix=[[ if eq "" (urlParse .public_url).Path ]]/[[ else ]][[ (urlParse .public_url).Path ]][[ end ]] \
|
||||
--web.listen-address=0.0.0.0:{{ env "NOMAD_ALLOC_PORT_web-tls" }} \
|
||||
--cluster.listen-address=0.0.0.0:{{ env "NOMAD_ALLOC_PORT_cluster" }} \
|
||||
--cluster.advertise-address={{ env "NOMAD_HOST_ADDR_cluster" }} \
|
||||
|
|
|
@ -196,8 +196,6 @@ monitoring:
|
|||
# Caution : there's no builtin security, you should configure appropriate middlewares before enabling
|
||||
enabled: false
|
||||
router: alertmanager
|
||||
# No need to strip prefix as alertmanager will be configured to handle it
|
||||
strip_prefix: false
|
||||
# Volumes used for data persistence. Note : it's a per_alloc volume
|
||||
# so you need to create eg alertmanager-data[0]. This volume should be writeable by user with ID 9093
|
||||
volumes:
|
||||
|
|
Loading…
Reference in New Issue