alertmanager报错Failed to get final advertise address: No private IP address found, and explicit IP not provided"

alertmanager报错无法启动

[root@ip-172-1-0-54 local]# /usr/local/alertmanager-0.15.3.linux-amd64/alertmanager --config.file=/usr/local/alertmanager-0.15.3.linux-amd64/alertmanager.yml
level=info ts=2020-03-16T09:35:39.01447992Z caller=main.go:174 msg="Starting Alertmanager" version="(version=0.15.3, branch=HEAD, revision=d4a7697cc90f8bce62efe7c44b63b542578ec0a1)"
level=info ts=2020-03-16T09:35:39.014540777Z caller=main.go:175 build_context="(go=go1.11.2, user=root@4ecc17c53d26, date=20181109-15:40:48)"
level=warn ts=2020-03-16T09:35:39.019294141Z caller=cluster.go:148 component=cluster err="couldn't deduce an advertise address: no private IP found, explicit advertise addr not provided"
level=error ts=2020-03-16T09:35:39.023129501Z caller=main.go:199 msg="unable to initialize gossip mesh" err="create memberlist: Failed to get final advertise address: No private IP address found, and explicit IP not provided"

解决方法:

启动参数加:

--cluster.advertise-address=0.0.0.0:9093

[root@ip-172-1-0-54 local]# /usr/local/alertmanager-0.15.3.linux-amd64/alertmanager --config.file=/usr/local/alertmanager-0.15.3.linux-amd64/alertmanager.yml --cluster.advertise-address=0.0.0.0:9093
level=info ts=2020-03-16T10:00:51.714410058Z caller=main.go:174 msg="Starting Alertmanager" version="(version=0.15.3, branch=HEAD, revision=d4a7697cc90f8bce62efe7c44b63b542578ec0a1)"
level=info ts=2020-03-16T10:00:51.714465634Z caller=main.go:175 build_context="(go=go1.11.2, user=root@4ecc17c53d26, date=20181109-15:40:48)"
level=info ts=2020-03-16T10:00:51.717017454Z caller=main.go:322 msg="Loading configuration file" file=/usr/local/alertmanager-0.15.3.linux-amd64/alertmanager.yml
level=info ts=2020-03-16T10:00:51.71706397Z caller=cluster.go:570 component=cluster msg="Waiting for gossip to settle..." interval=2s
level=info ts=2020-03-16T10:00:51.719546676Z caller=main.go:398 msg=Listening address=:9093
level=info ts=2020-03-16T10:00:53.717228531Z caller=cluster.go:595 component=cluster msg="gossip not settled" polls=0 before=0 now=1 elapsed=2.000096813s
level=info ts=2020-03-16T10:01:01.717699786Z caller=cluster.go:587 component=cluster msg="gossip settled; proceeding" elapsed=10.000570929s

posted @ 2020-03-16 18:05  David---wei  阅读(4051)  评论(0编辑  收藏  举报