Prometheus Alert Manager 错误“component=cluster err=”无法推断广告地址“和”无法初始化八卦网格“

Prometheus Alert Manager 错误“component=cluster err=”无法推断广告地址“和”无法初始化八卦网格“

我是 Prometheus 的新手,正在尝试安装 Alert Manager 模块。

在 Debian 10 上使用 Prometheus 2.19.2、Node exporter 1.0.1 和 Alert Manager 0.21.0。

配置文件:

普罗米修斯:

alerting:
  alertmanagers:
  - static_configs:
    - targets:
      - localhost:9093"

警报管理器:

global:
  smtp_smarthost: 'localhost:25'
  smtp_from: '[email protected]'
  smtp_auth_username: ''
  smtp_auth_password: ''
  smtp_require_tls: false

templates:
- '/etc/alertmanager/template/*.tmpl'

route:
  repeat_interval: 1h
  receiver: operations-team

receivers:
- name: 'operations-team'
  email_configs:
  - to: '[email protected]'

该问题与 Alert Manager 服务有关,它在启动时引发错误:

Jul  9 19:08:11 mail alertmanager[851]: level=warn ts=2020-07-09T17:08:11.887Z caller=cluster.go:154 component=cluster err="couldn't deduce an advertise address: no private IP found, explicit advertise addr not provided"

Jul  9 19:08:11 mail alertmanager[851]: level=error ts=2020-07-09T17:08:11.901Z caller=main.go:241 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"

我一直在互联网上寻找但还没有找到解决方案......

有任何想法吗?

谢谢

答案1

启动时需添加参数“--cluster.advertise-address=0.0.0.0:9093”

相关内容