# Prometheus-alert

**URL:** <https://discuss.prometheus.io/t/prometheus-alert/1473>\
**Category:** Prometheus server\
**Created:** [February 20, 2023, 8:50am UTC](https://discuss.prometheus.io/t/prometheus-alert/1473 "2023-02-20T08:50:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saiben10](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/saiben10/32/626_2.png) [@saiben10](https://discuss.prometheus.io/u/saiben10)\
**Post date:** [February 20, 2023, 8:50am UTC](https://discuss.prometheus.io/t/prometheus-alert/1473/1 "2023-02-20T08:50:46Z")

</div>

i have configured the alert rules in prometheus.yaml  
rules.yaml part

- name: pod alert  
rules:
  - alert: pod\_status  
expr: min\_over\_time(sum by (deployment,namespace,pod) (kube\_pod\_status\_phase{phase=“Failed”})[10m:1m]) \> 0  
for: 1m  
labels:  
severity: critical  
annotations:  
summary: active state

and i am to create alerts which i am passing the email configuraion in alertmanager.yaml but i am unable to get alerts  
alertmanager.yaml

global:  
resolve\_timeout: 5m  
receivers:

- name: ‘default-receiver’  
email\_configs:
  - to: ‘to-mail’  
from: ‘from-mail’  
smarthost: smtphost  
auth\_username: ‘to-mail’  
route:  
group\_by: [‘pod\_status’]  
group\_interval: 5m  
group\_wait: 10s  
receiver: ‘default-receiver’  
repeat\_interval: 3h

even though some of pods are in failed state one of my support team said username and password are not required for smtp.  
can anyone twll what is the issue is?
