alertmanager: no private IP found

22 views
Skip to first unread message

Saeedeh Moghimi

unread,
Jun 6, 2020, 7:34:42 AM6/6/20
to Prometheus Users

I made a service for alertmanager, which is like this:


Description=Alert Manager
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=alertmanager
Group=alertmanager
ExecStart=/usr/local/bin/alertmanager \
  --config.file=/etc/alertmanager/alertmanager.yml \
  --storage.path=/data/alertmanager \ 
  --web.external-url http://public_ip_server:9093

Restart=always

[Install]
WantedBy=multi-user.target
 

I get this error when i start the alermanager
err="couldn't deduce an advertise address: no private IP found, explicit advertise addr not provided"


no private IP has been configed on this server, but I set --web.external-url http://public_ip_server:9093 , Why I still get this error?

Saeedeh Moghimi

unread,
Jun 6, 2020, 11:47:37 AM6/6/20
to Prometheus Users

It seems this label solve the problem
  --cluster.advertise-address="public-ip:9093"

Reply all
Reply to author
Forward
0 new messages