Command line parameter in alertmanager

[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 $ ps -eaf|grep alert
    1 1000      1:31 /bin/alertmanager 
--config.file=/etc/alertmanager/config/alertmanager.yaml 
--cluster.listen-address=[10.233.110.73]:9094 --storage.path=/alertmanager 
--data.retention=120h --web.listen-address=:9093 
--web.external-url=http://prometheus-operator-alertmanager.ns-prometheus-lab:9093
 
--web.route-prefix=/ 
--cluster.peer=alertmanager-prometheus-operator-alertmanager-0.alertmanager-operated.ns-prometheus-lab.svc:9094
 
--cluster.peer=alertmanager-prometheus-operator-alertmanager-1.alertmanager-operated.ns-prometheus-lab.svc:9094
 
--cluster.peer=alertmanager-prometheus-operator-alertmanager-2.alertmanager-operated.ns-prometheus-lab.svc:9094
/alertmanager $ exit
[root@ansible-node prometheus-operator-qa-lab-final]# kubectl exec -it 
alertmanager-prometheus-operator-alertmanager-1 alertmanager -n 
ns-prometheus-lab -- sh
Defaulting container name to alertmanager.
Use 'kubectl describe pod/alertmanager-prometheus-operator-alertmanager-1 
-n ns-prometheus-lab' to see all of the containers in this pod.
/alertmanager $ ps -eaf|grep alert
    1 1000      2:37 /bin/alertmanager 
--config.file=/etc/alertmanager/config/alertmanager.yaml 
--cluster.listen-address=[10.233.103.120]:9094 --storage.path=/alertmanager 
--data.retention=120h --web.listen-address=:9093 
--web.external-url=http://prometheus-operator-alertmanager.ns-prometheus-lab:9093
 
--web.route-prefix=/ 
--cluster.peer=alertmanager-prometheus-operator-alertmanager-0.alertmanager-operated.ns-prometheus-lab.svc:9094
 
--cluster.peer=alertmanager-prometheus-operator-alertmanager-1.alertmanager-operated.ns-prometheus-lab.svc:9094
 
--cluster.peer=alertmanager-prometheus-operator-alertmanager-2.alertmanager-operated.ns-prometheus-lab.svc:9094
/alertmanager $ exit
[root@ansible-node prometheus-operator-qa-lab-final]# kubectl exec -it 
alertmanager-prometheus-operator-alertmanager-2 alertmanager -n 
ns-prometheus-lab -- sh
Defaulting container name to alertmanager.
Use 'kubectl describe pod/alertmanager-prometheus-operator-alertmanager-2 
-n ns-prometheus-lab' to see all of the containers in this pod.
/alertmanager $ ps -eaf|grep alert
    1 1000      1:45 /bin/alertmanager 
--config.file=/etc/alertmanager/config/alertmanager.yaml 
--cluster.listen-address=[10.233.110.72]:9094 --storage.path=/alertmanager 
--data.retention=120h --web.listen-address=:9093 
--web.external-url=http://prometheus-operator-alertmanager.ns-prometheus-lab:9093
 
--web.route-prefix=/ 
--cluster.peer=alertmanager-prometheus-operator-alertmanager-0.alertmanager-operated.ns-prometheus-lab.svc:9094
 
--cluster.peer=alertmanager-prometheus-operator-alertmanager-1.alertmanager-operated.ns-prometheus-lab.svc:9094
 
--cluster.peer=alertmanager-prometheus-operator-alertmanager-2.alertmanager-operated.ns-prometheus-lab.svc:9094
/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/45ccff76-2107-4961-bdca-ba3d1af416c6o%40googlegroups.com.

Reply via email to