[prometheus-users] alertmanager HA

2021-06-22 Thread nina guo
Hi guys, I'm implementing alertmanager HA. alertmanager0: - containers: - name: alertmanager image: quay.io/prometheus/alertmanager:latest args: - "--config.file=/etc/alertmanager/config.yml" - "--storage.path=/aler

[prometheus-users] alertmanager HA

2021-07-25 Thread nina guo
Hi guys, I have a question regarding alertmanager HA. If I want to implement it in kubernetes cluster, I should deploy 2 alertmanager deployments or deploy 2 alertmanager with only 1 deployment? Actually currently I deployed with 2 seperate alertmanager deployments, each one is Statefulset, li

Re: [prometheus-users] alertmanager HA

2021-06-22 Thread sayf eddine Hammemi
Hello, you can make use of Kubernetes Statefulset instead of deployment in this case On Wed, Jun 23, 2021 at 8:20 AM nina guo wrote: > Hi guys, > > I'm implementing alertmanager HA. > > alertmanager0: > - > containers: > - name: alertmanager >

Re: [prometheus-users] alertmanager HA

2021-06-23 Thread nina guo
May I ask what's the difference once I change to Statefulset? On Wednesday, June 23, 2021 at 2:42:56 PM UTC+8 sayf.eddi...@gmail.com wrote: > Hello, you can make use of Kubernetes Statefulset instead of deployment in > this case > > On Wed, Jun 23, 2021 at 8:20 AM nina guo wrote: > >> Hi guys,

Re: [prometheus-users] alertmanager HA

2021-06-23 Thread sayf eddine Hammemi
The statefulset keeps track of the pods (hence the word stateful), they will get assigned the same name and they will keep the same hostname every time they die and come back, ie: a statefulset named foobar with two pods will always have two pods named foobar-0 and foobar-1 combined with a headless

Re: [prometheus-users] alertmanager HA

2021-06-23 Thread nina guo
Thank you, great, I resolved the issue once I change to StatefulSet. On Wednesday, June 23, 2021 at 3:21:10 PM UTC+8 sayf.eddi...@gmail.com wrote: > The statefulset keeps track of the pods (hence the word stateful), they > will get assigned the same name and they will keep the same hostname

Re: [prometheus-users] alertmanager HA

2021-06-23 Thread nina guo
one more question is whether the alert manager can be accessed by the following way in Prometheus configmap? alerting: alertmanagers: - scheme: http static_configs: - targets: - alertmanager0-0.alertmanager0.monitoring.svc.cluster.local:9093 - alert

[prometheus-users] alertmanager HA error "no such host"

2022-03-24 Thread nina guo
We are deploying alertmanager HA solution, but got the below error. level=debug ts=2022-03-24T09:35:50.731Z caller=cluster.go:329 component=cluster memberlist="2022/03/24 09:35:50 [WARN] memberlist: Failed to resolve alertmanager-1.alertmanager.monitoring.svc.cluster.local:9094: lookup alertman