• 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

  • 相关阅读:
    初识人工智能(二):机器学习(三):sklearn数据集
    初识人工智能(二):机器学习(一):sklearn特征抽取
    Python3标准库:json JavaScript对象记法
    Python3标准库:uuid 全局唯一标识符
    Python3标准库:http.cookies HTTP cookie
    Python3标准库:base64 用ASCII编码二进制数据
    Python3标准库:urllib.robotparser Internet蜘蛛访问控制
    初识人工智能(一):数据分析(四):pandas数据分析
    ubuntu18.04.4安装k8s
    elasticsearch7.5.0+kibana-7.5.0+cerebro-0.8.5集群生产环境安装配置及通过elasticsearch-migration工具做新老集群数据迁移
  • 原文地址:https://www.cnblogs.com/st12345/p/12505520.html
Copyright © 2020-2023  润新知