Alertmanager fails to start with error : "couldn't deduce an advertise address: no private IP found"

52 views
Skip to first unread message

Tibo

unread,
Jan 21, 2025, 12:18:07 PM1/21/25
to Prometheus Users
Hello the community,

I'm new to the Prometheus stack and I'm trying to configure Prometheus + Alertmanager using Docker compose for a customer project.

Environment :
Docker compose
Linux ubuntu

Symptoms :
Alertmanager stops while trying to start.

Logs :

time=2025-01-21T14:07:54.309Z level=INFO source=main.go:191 msg="Starting Alertmanager" version="(version=0.28.0, branch=HEAD, revision=4ce04fb010bd626fca35928dcfe82f6f2da52ced)"

time=2025-01-21T14:07:54.310Z level=INFO source=main.go:192 msg="Build context" build_context="(go=go1.23.4, platform=linux/amd64, user=root@40be7f318ba7, date=20250115-14:22:34, tags=netgo)"

time=2025-01-21T14:07:54.323Z level=WARN source=cluster.go:178 msg="couldn't deduce an advertise address: no private IP found, explicit advertise addr not provided" component=cluster

time=2025-01-21T14:07:54.325Z level=ERROR source=main.go:259 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"


docker-compose-project-network.yaml :

networks:
    integration-int:
        driver: bridge
        ipam:
            config:
            - subnet: 192.172.0.0/16


docker-compose-alertmanager.yaml:

 services :
   alert-manager:
     image: "prom/alertmanager:v0.28.0"
     environment:
         - VIRTUAL_HOST=${ALERTMGR_VIRTUAL_HOST}
         - VIRTUAL_PORT=9093
         - CERT_NAME=${CERT_NAME}
     ports:
       - "9093:9093"
     labels:
       NAME: "alertmanager"
       ENVIRONMENT: ${ENVIRONMENT}
     volumes:
       - "/var/volumes/alertmanager-config/alertmanager.yml:/etc/alertmanager/alertmanager.yml"
     restart: always
     networks:
         - ${NETWORK}
   
 volumes:
   portainer_data:
 
 networks:
     project-integration_integration-int:
      external: true apiVersion: 1


Alertmanager.yml :

global:
  smtp_smarthost: 'mysmtp.com:2525'
  smtp_from: 'ma...@domain.com'
  smtp_require_tls: false
route:
  receiver: example-email
  group_by: [alertname]
receivers:
 - name: example-email
   email_configs:
    - to: 'em...@example.com'




Thank you for those who can help me :)
Reply all
Reply to author
Forward
0 new messages