• 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

  • 相关阅读:
    前序中序输出后序
    Blah数集
    中缀表达式转后缀表达式 (栈)
    1357:车厢调度 (栈)
    最长公共上升子序列 (LIS+LCS+记录)
    1481:Maximum sum (前缀和+dp)
    8464:股票买卖
    7627:鸡蛋的硬度
    2989:糖果
    U33405 纽约 (二分)
  • 原文地址:https://www.cnblogs.com/st12345/p/12505520.html
Copyright © 2020-2023  润新知