Prometheus 警报管理器错误“component=cluster err="无法推断广告地址”和“无法初始化八卦网格”

Prometheus 警报管理器错误“component=cluster err="无法推断广告地址”和“无法初始化八卦网格”

我是 Prometheus 新手,我正在尝试安装警报管理器模块。

在 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]'

该问题与警报管理器服务有关,该服务在启动时抛出错误:

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启动时应添加arg“ ”。

相关内容