Fix alertmanager intentions

This commit is contained in:
Daniel Berteaud 2024-03-26 12:23:39 +01:00
parent eff89d7281
commit 96cf8a256a
2 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,7 @@ Sources = [
{
Action = "allow"
HTTP {
PathPrefix = "[[ if eq "" (urlParse .monitoring.alertmanager.public_url).Path ]]/[[ else ]](urlParse .monitoring.alertmanager.public_url).Path[[ end ]]"
PathPrefix = "[[ if eq "" (urlParse .monitoring.alertmanager.public_url).Path ]]/[[ else ]][[ (urlParse .monitoring.alertmanager.public_url).Path ]][[ end ]]"
Methods = ["GET", "HEAD", "POST", "PUT", "DELETE", "PATCH"]
}
}

View File

@ -184,6 +184,9 @@ monitoring:
cpu: 50
memory: 64
memory_max: 80
# If a proxy is used
proxy:
address: http://alertmanager[[ .consul.suffix ]]:alertmanager[[ .consul.suffix ]]@127.0.0.1:3128
# URL where the web interface is reachable (if exposed with Traefik)
public_url: https://alert.example.org
# Traefik settings