argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.98k stars 5.47k forks source link

Not getting alerts after configuring argocd with alertmanager #8865

Open ssharma2089 opened 2 years ago

ssharma2089 commented 2 years ago

Describe the bug

I have deployed kube-prometheus v0.10.0 and argocd v2.3.1. Added below configuration to configure argocd with alertmanager. In alertmanager.yaml: receivers:

In argocd-notification-cm.yaml: apiVersion: v1 kind: ConfigMap metadata: name: argocd-notifications-cm data: service.alertmanager: | targets:

After doing all the configuration, when we are checking the logs of alert manager , it gives us the below error

level=error ts=2022-03-22T14:22:28.274Z caller=dispatch.go:354 component=dispatcher msg="Notify for alerts failed" num_alerts=3 err="argocd/webhook[0]: notify retry canceled due to unrecoverable error after 1 attempts: unexpected status code 404: http://10.43.20.153:9093/api/alerts/webhook"

Defined trigger and template also in argocd-notifications-cm.

I am not really knowing, Why am I getting 404 error?

paltaa commented 5 months ago

hey @ssharma2089, do you have any working config for argoCD notifications sending alerts to alertmanager?