# Elasticsearch APM Missing Alerts

**URL:** <https://discuss.elastic.co/t/elasticsearch-apm-missing-alerts/349268>\
**Category:** APM\
**Tags:** ui\
**Created:** [December 13, 2023, 1:47pm UTC](https://discuss.elastic.co/t/elasticsearch-apm-missing-alerts/349268 "2023-12-13T13:47:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shameek\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shameek_agarwal/32/129917_2.png) [@Shameek\_Agarwal](https://discuss.elastic.co/u/Shameek_Agarwal)\
**Post date:** [December 13, 2023, 1:47pm UTC](https://discuss.elastic.co/t/elasticsearch-apm-missing-alerts/349268/1 "2023-12-13T13:47:43Z")

</div>

hi all, really liking apm so far!  
so basically, i am doing via opentelemetry (logs + traces only for now)

now, i want to **alert** for e.g. by email **whenever any error occurs**  
e.g. if traces / logs from opentelemetry observe any error, send an alert  
its not like i want to alert only on some breach  
_this is just because of the nature of apps i am working with_

while i did get the email functionality to work  
what i observed was that i am **missing out on some errors / emails**  
is there **something obvious i am missing**?  
also, are there some suggestions for better configuring this based on my requirements?

> **Screenshot of my Alert Configuration**
>
> ![Screenshot from 2023-12-13 17-13-56](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fea979a933c48922b3007d2c3b0d8536a01bde56.png)

so, make note of -

1. error count threshold - above 0 errors
2. for last 5 minutes
3. poll every 5 minutes

---

<div class="post-metadata">

**Author:** ![Kate\_Patticha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kate_patticha/32/100078_2.png) [@Kate\_Patticha](https://discuss.elastic.co/u/Kate_Patticha)\
**Post date:** [December 13, 2023, 4:33pm UTC](https://discuss.elastic.co/t/elasticsearch-apm-missing-alerts/349268/2 "2023-12-13T16:33:57Z")

</div>

Hi @Shameek_Agarwal

> [@Shameek\_Agarwal](#):
>
> what i observed was that i am **missing out on some errors / emails**

Can you please elaborate more on that?

---

<div class="post-metadata">

**Author:** ![Shameek\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shameek_agarwal/32/129917_2.png) [@Shameek\_Agarwal](https://discuss.elastic.co/u/Shameek_Agarwal)\
**Post date:** [December 14, 2023, 1:03pm UTC](https://discuss.elastic.co/t/elasticsearch-apm-missing-alerts/349268/3 "2023-12-14T13:03:29Z")

</div>

Thaks for getting back @Kate_Patticha !

basically, i know how to create an error in my applications  
there is a get endpoint, and if i pass it an id of -1, it results in an error

i would expect this - all errors that happen in a span of 5 minutes and show up as a single alert (maybe per service?)

i call that endpoint in the 1st and e.g. 6th minute, i dont get an email twice, it is flaky

so, i was interested in knowing how (and if) i can improve the reliability for this alerting mechanism, based on my requirements and the configuration i put above

also, the notify dropdown, is it better being "on status changes" or "on check interval"? cannot find the documentation for it / unable to properly wrap my head around it...

---

<div class="post-metadata">

**Author:** ![Kate\_Patticha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kate_patticha/32/100078_2.png) [@Kate\_Patticha](https://discuss.elastic.co/u/Kate_Patticha)\
**Post date:** [December 19, 2023, 9:30am UTC](https://discuss.elastic.co/t/elasticsearch-apm-missing-alerts/349268/4 "2023-12-19T09:30:58Z")

</div>

I understand; it seems to be the same error or grouped under the same error grouping key, right? I think that might explain why you're not receiving additional emails while selected on status change.

When utilizing the 'on check interval' setting, notifications will be triggered if the specified condition is met at the scheduled interval. In that case, you should receive an additional email.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 16, 2024, 9:31am UTC](https://discuss.elastic.co/t/elasticsearch-apm-missing-alerts/349268/5 "2024-01-16T09:31:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
