Do not allocate a port for metrics unless prometheus is enabled
This commit is contained in:
parent
b55a2f232d
commit
9d6c2e62c6
|
@ -23,7 +23,6 @@ job "traefik" {
|
|||
static = 443
|
||||
to = 5443
|
||||
}
|
||||
port "metrics" {}
|
||||
}
|
||||
|
||||
service {
|
||||
|
|
|
@ -29,7 +29,9 @@ job [[ .instance | toJSON ]] {
|
|||
}
|
||||
[[- end ]]
|
||||
[[- end ]]
|
||||
[[- if .prometheus.enabled ]]
|
||||
port "metrics" {}
|
||||
[[- end ]]
|
||||
}
|
||||
|
||||
service {
|
||||
|
|
Loading…
Reference in New Issue