I can get the response inside the pod by using DNS name [root@ansible-node prometheus-operator-qa-lab-final]# kubectl exec -it alertmanager-prometheus-operator-alertmanager-0 alertmanager -n ns-prometheus-lab -- sh Defaulting container name to alertmanager. Use 'kubectl describe pod/alertmanager-prometheus-operator-alertmanager-0 -n ns-prometheus-lab' to see all of the containers in this pod. /alertmanager $ nslookup 10.233.110.73 Server: 169.254.25.10 Address: 169.254.25.10:53
73.110.233.10.in-addr.arpa name = alertmanager-prometheus-operator-alertmanager-0.alertmanager-operated.ns-prometheus-lab.svc.cluster.local /alertmanager $ nslookup 10.233.103.120 Server: 169.254.25.10 Address: 169.254.25.10:53 120.103.233.10.in-addr.arpa name = alertmanager-prometheus-operator-alertmanager-1.alertmanager-operated.ns-prometheus-lab.svc.cluster.local /alertmanager $ nslookup 10.233.110.72 Server: 169.254.25.10 Address: 169.254.25.10:53 72.110.233.10.in-addr.arpa name = 10-233-110-72.prometheus-operator-alertmanager.ns-prometheus-lab.svc.cluster.local /alertmanager $ On Wednesday, 29 July 2020 15:49:06 UTC+8, Nabarun Sen wrote: > > Hi All, > > I need a help as my alertmanager sending duplicate alert( for 1 alert 3 > notification) to webhook receiver when we set alertmanager replica to 3 but > when I put alertmanager replica 1 it is sending one notofication. > > Please let me know if anyone faced similar issue. > > > Alertmanager configuration: > > global: > resolve_timeout: 5m > route: > receiver: 'webhook_receiver' > group_wait: 30s > group_interval: 10h > repeat_interval: 24h > routes: > - receiver: 'webhook_receiver' > match_re: > alertname: NodedownAlert|ServiceDown > group_wait: 30s > group_interval: 10h > repeat_interval: 24h > group_by: ['description'] > receivers: > - name: webhook_receiver > webhook_configs: > - send_resolved: true > url: > http://prometheus-webhook.monitoring:8080/v1/webhook?group=operation > > templates: > - '/etc/alertmanager/config/notification.tmpl' > > Thanks > Nabarun Sen > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/038df9ae-a32f-454a-a018-a219e5fdc7c4o%40googlegroups.com.