prometheus-alertmanager - Prometheus Alert Manager 错误“component=cluster err="couldn't deduc an ad address" and "unable to initialize gossip mesh"
问题描述
我是 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: 'alertmanager@domain.com'
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: 'postmaster@domain.com'
问题与警报管理器服务有关,该服务在启动时引发错误:
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"
我一直在互联网上寻找,但还没有找到解决方案......
有任何想法吗?
谢谢
解决方案
您应该在启动时添加 arg "--cluster.advertise-address=0.0.0.0:9093"
推荐阅读
- javascript - 条件渲染 REACT 模态组件
- linux - 渲染键中的换行符导致格式不正确
- spring - java.lang.ClassNotFoundException:org.springframework.core.ErrorCoded
- python-3.x - How to scroll horizontally using selenium chromedriver in python
- python - Windows 上的 Python os.exec 将控制权返回给调用进程
- c - 指向 char 类型指针的动态分配内存的指针的类型是什么?
- python - 如何从类方法中为类变量分配新值?
- bulma - laravel 项目上的布尔玛安装在 laravel 7 上失败
- python - 如何使用 DJANGO 从 API 中提取数据并将其显示在网页中?
- python - 用于创建 SQL Server 数据库备份文件的 Python 脚本(使用 pyodbc)