# Issues with email later configuration

**URL:** <https://forums.percona.com/t/issues-with-email-later-configuration/36315>\
**Category:** PMM 2.x\
**Created:** [January 24, 2025, 6:35am UTC](https://forums.percona.com/t/issues-with-email-later-configuration/36315 "2025-01-24T06:35:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhivya](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@Dhivya](https://forums.percona.com/u/Dhivya)\
**Post date:** [January 24, 2025, 6:35am UTC](https://forums.percona.com/t/issues-with-email-later-configuration/36315/1 "2025-01-24T06:35:43Z")

</div>

Hi All,

Am trying to configure emails alerts for critical parameters like service down ,replication lag and connections for now.  
For Service down I used the default alert rule templates it worked. But for replication lag and connections I tried to configure alert and it gives me alert with data dource not found.  
Alert email sample :  
**Firing: 1 alert for alertname=DatasourceNoData grafana\_folder=MongoDB**  
Firing **DatasourceNoData**  
**Value:**  
**Labels:**

- alertname: DatasourceNoData
- datasource\_uid: PA58DA793C7250F1B
- grafana\_folder: MongoDB
- ref\_id: A
- rulename: MongoDB\_Connections

Condition used for Alert :  
For monitoring connections : mongodb\_mongod\_connections \> 100  
For replication lag : mongodb\_repl\_lag\_seconds \> 30

the default template for service down has the below condition which is working properly.  
up{service\_type=“mongodb”} == bool 0 and on() (up{service\_type=“mongodb”} == bool 0)[6s]

Can somehelp help to correct the datasource no data issue for configuring and triggering alert emais.

Thanks & Regards,  
Dhivya.K
