mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-27 16:43:41 +00:00
update cluster listen address flag
This commit is contained in:
parent
3f2e00fbea
commit
6cfbe6e8b4
6
Procfile
6
Procfile
@ -1,5 +1,5 @@
|
||||
a1: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a1 --web.listen-address=:9093 --cluster.address=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml
|
||||
a2: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a2 --web.listen-address=:9094 --cluster.address=127.0.0.1:8002 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml
|
||||
a3: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a3 --web.listen-address=:9095 --cluster.address=127.0.0.1:8003 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml
|
||||
a1: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a1 --web.listen-address=:9093 --cluster.listen-address=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml
|
||||
a2: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a2 --web.listen-address=:9094 --cluster.listen-address=127.0.0.1:8002 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml
|
||||
a3: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a3 --web.listen-address=:9095 --cluster.listen-address=127.0.0.1:8003 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml
|
||||
wh: go run ./examples/webhook/echo.go
|
||||
|
||||
|
@ -102,7 +102,7 @@ func newMarkerMetrics(marker types.Marker) {
|
||||
prometheus.MustRegister(alertsSuppressed)
|
||||
}
|
||||
|
||||
const defaultClusterAddr = "0.0.0.0:19093"
|
||||
const defaultClusterAddr = "0.0.0.0:9094"
|
||||
|
||||
func main() {
|
||||
if os.Getenv("DEBUG") != "" {
|
||||
@ -125,7 +125,7 @@ func main() {
|
||||
routePrefix = kingpin.Flag("web.route-prefix", "Prefix for the internal routes of web endpoints. Defaults to path of --web.external-url.").String()
|
||||
listenAddress = kingpin.Flag("web.listen-address", "Address to listen on for the web interface and API.").Default(":9093").String()
|
||||
|
||||
clusterBindAddr = kingpin.Flag("cluster.address", "listen address for cluster").
|
||||
clusterBindAddr = kingpin.Flag("cluster.listen-address", "listen address for cluster").
|
||||
Default(defaultClusterAddr).String()
|
||||
|
||||
clusterAdvertiseAddr = kingpin.Flag("cluster.advertise-address", "explicit address to advertise in cluster").String()
|
||||
|
Loading…
Reference in New Issue
Block a user