# How to get instance ip and job name in \[OK\] state mails, after alerts comes to \[OK\]

**URL:** <https://community.grafana.com/t/how-to-get-instance-ip-and-job-name-in-ok-state-mails-after-alerts-comes-to-ok/56229>\
**Category:** Alerting\
**Tags:** templating, alerting\
**Created:** [November 12, 2021, 7:22pm UTC](https://community.grafana.com/t/how-to-get-instance-ip-and-job-name-in-ok-state-mails-after-alerts-comes-to-ok/56229 "2021-11-12T19:22:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkdhanasekar](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@tkdhanasekar](https://community.grafana.com/u/tkdhanasekar)\
**Post date:** [November 12, 2021, 7:22pm UTC](https://community.grafana.com/t/how-to-get-instance-ip-and-job-name-in-ok-state-mails-after-alerts-comes-to-ok/56229/1 "2021-11-12T19:22:36Z")

</div>

- What Grafana version and what operating system are you using?  
Version 8.2.3 (commit: fb85ed6912, branch: HEAD)
- **What** are you trying to achieve?  
In email alerts , the alerts come with instance ip and job name(node name)  
but after alert state comes to [OK] state no instance ip and job name comes in email  
see attached images
- **How** are you trying to achieve it?  
**The alert comes with instance ip and job name**  
 ![s1](https://us1.discourse-cdn.com/grafana/original/3X/b/f/bf1161d5d0d0fb3b4edafdedf39a91ec735b4c2b.png)

**The [OK] state mail not had instance ip and job name**  
 ![s2](https://us1.discourse-cdn.com/grafana/original/3X/6/8/68480f33533e6d71a71190f4b634672a9953f7f6.png)

- What happened?  
How to achieve instance ip and job name in [OK] state mails , without instance ip and job name  
cant identify which instance comes to [OK] state

- What did you **expect** to happen?  
i expect to get instance ip and job name in [OK] state mails

- Can you copy/paste the configuration(s) that you are having problems with?

- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us **exactly** what they were.  
no errors

- Did you follow any online instructions? If so, what is the URL?

---

<div class="post-metadata">

**Author:** ![bierenfeldm](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@bierenfeldm](https://community.grafana.com/u/bierenfeldm)\
**Post date:** [November 23, 2021, 9:23am UTC](https://community.grafana.com/t/how-to-get-instance-ip-and-job-name-in-ok-state-mails-after-alerts-comes-to-ok/56229/2 "2021-11-23T09:23:55Z")

</div>

Same here. Having the Metric name in the OK Message is a vital Information.

---

<div class="post-metadata">

**Author:** ![tkdhanasekar](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@tkdhanasekar](https://community.grafana.com/u/tkdhanasekar)\
**Post date:** [December 14, 2021, 3:34am UTC](https://community.grafana.com/t/how-to-get-instance-ip-and-job-name-in-ok-state-mails-after-alerts-comes-to-ok/56229/3 "2021-12-14T03:34:46Z")

</div>

any clues for OK alerts ip and node name in alert mails?
