Open rrraikman opened 2 weeks ago
We're also facing the same issue above
Following. Facing the same issue
I think the error message is just misleading. My issue ended up being related to the use of .Labels
and .Annotations
. It should have been CommonAnnotations
and .CommonLabels
, respectively.
My new (working) configuration is:
route:
group_by: ["alertname"]
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
receiver: sns
routes:
- match:
alertname: Watchdog
group_wait: 30s
group_interval: 1m
repeat_interval: 1m
receiver: sns
receivers:
- name: sns
sns_configs:
- topic_arn: arn:aws:sns:us-east-2:<account-id-redacted>:<topic-name-redacted>
attributes:
Key: severity
Value: "{{ .CommonLabels.severity }}"
message: |
Severity: {{ .CommonLabels.severity }}
Summary: {{ .CommonAnnotations.summary }}
Description: {{ .CommonAnnotations.description }}
subject: "[{{ .Status | toUpper }}] {{ .CommonLabels.alertname }}"
send_resolved: true
What did you do? Configured an SNS receiver
What did you expect to see? An alert be sent
What did you see instead? Under which circumstances? Seeing the following logs in all alert circumstances:
Environment Kubernetes/EKS
Seeing this on 0.27.0, 0.26.0, 0.25.0, and 0.24.0 as well.
Prometheus version:
Alertmanager configuration file:
I have also tried with the following configuration file:
N/A