unable to initialize gossip mesh, No private IP address found, and explicit IP not provided

3565 views
Skip to first unread message

sebastiaan...@wegroup.be

unread,
Jul 29, 2018, 4:52:20 PM7/29/18
to Prometheus Users
So I want to run alertmanager as docker in my own docker network like:

```
NAME := alertmanager
IP := 172.32.0.44

docker run -d \
--net production \ 
--ip \"$(IP)\" \
-v /srv/alertmanager/:/alertmanager \
-v /srv/alertmanager-etc/config.yml:/etc/alertmanager/config.yml \
--restart=always \
--name  \"$(NAME)\" \
--dns 172.32.0.2 prom/\"$(NAME)\"
```

But I get this error:

```
level=info ts=2018-07-27T18:20:03.387801651Z caller=main.go:174 msg="Starting Alertmanager" version="(version=0.15.1, branch=HEAD, revision=8397de1830f154535a31150f9262da0072d8725d)"
level=info ts=2018-07-27T18:20:03.387905366Z caller=main.go:175 build_context="(go=go1.10.3, user=root@efde7f9485ae, date=20180712-18:25:27)"
level=warn ts=2018-07-27T18:20:03.393156442Z 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=2018-07-27T18:20:03.399208639Z 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"
```

Is there an option to pass the IP as ENV variable?

Simon Pasquier

unread,
Jul 30, 2018, 4:08:06 AM7/30/18
to sebastiaan...@wegroup.be, Prometheus Users
You can pass the -cluster.advertise-address=CLUSTER.ADVERTISE-ADDRESS option to your container.
docker run ... --storage.path=/alertmanager --cluster.advertise-address="$IP"

Another (better) option would be not to use a public IP range for your Docker network. But I don't know all your requirements.


Dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Als dit bericht niet voor u bestemd is, wordt u vriendelijk verzocht dit aan de afzender te melden. WeGroup NV staat door de elektronische verzending van dit bericht niet in voor de juiste en volledige overbrenging van de inhoud, noch voor tijdige ontvangst daarvan. WeGroup NV heeft als ondernemingsnummer BE0680.957.816 en FSMA-nummer 0680957816 , met kantoor te Oktrooiplein 1 bus 201, 9000 Gent. Voor informatie over WeGroup NV raadpleegt u https://www.wegroup.be.


This e-mail is intended for the addressee’s eyes only. If you are not the intended recipient, you are hereby kindly requested to inform the sender of this. In view of the electronic nature of this communication, WeGroup NV is neither liable for the proper and complete transmission of the information contained therein nor for any delay in its receipt. WeGroup NV has as company number BE0680.957.816 and FSMA-number 068095781, with it's offices located at Oktrooiplein 1 bus 201, 9000 Ghent. For information about WeGroup NV, direct your browser to http://www.wegroup.be.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6ffc6de6-83d8-4344-a05d-aea3656628fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages