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.
I have throuble making Alertmanager working on our integration server while it's working fine localy on docker for Windows.
Here you can find the desciption of the server configuration on the logs :
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/16docker-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 :)