# How to trigger alert for the status of SQS message count every on hour?

**URL:** <https://community.dynatrace.com/t/how-to-trigger-alert-for-the-status-of-sqs-message-count-every-on-hour/47392>\
**Category:** Alerting\
**Tags:** problem-notification, anomaly-detection, problems-classic\
**Created:** [August 30, 2024, 8:51am UTC](https://community.dynatrace.com/t/how-to-trigger-alert-for-the-status-of-sqs-message-count-every-on-hour/47392 "2024-08-30T08:51:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadilck](https://avatars.discourse-cdn.com/v4/letter/f/e36b37/32.png) [@fadilck](https://community.dynatrace.com/u/fadilck)\
**Post date:** [August 30, 2024, 8:51am UTC](https://community.dynatrace.com/t/how-to-trigger-alert-for-the-status-of-sqs-message-count-every-on-hour/47392/1 "2024-08-30T08:51:05Z")

</div>

Hi, I have a requirement to trigger an alert on AWS SQS message count every one hour. We already has integrated the AWS.

I have created a metric event to get the SQS count. But I need to trigger alert for every 1 hour to get the live count. Please let me know, how to configure this. Currently if one alert is triggered, if it is open, it will not trigger another alert.

---

<div class="post-metadata">

**Author:** ![Gosia\_Murawska](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gosia\_Murawska](https://community.dynatrace.com/u/Gosia_Murawska)\
**Post date:** [December 17, 2024, 9:28am UTC](https://community.dynatrace.com/t/how-to-trigger-alert-for-the-status-of-sqs-message-count-every-on-hour/47392/2 "2024-12-17T09:28:51Z")

</div>

Hi&nbsp;[@fadilck](https://community.dynatrace.com/user/70832), did you manage to solve this one? It would be great if you share it with the Community 🙂

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 18, 2024, 11:37am UTC](https://community.dynatrace.com/t/how-to-trigger-alert-for-the-status-of-sqs-message-count-every-on-hour/47392/3 "2024-12-18T11:37:25Z")

</div>

Hi&nbsp;[@fadilck](https://community.dynatrace.com/user/70832)

Since you’ve already integrated AWS and created a metric event to track the SQS message count, let’s ensure it’s set up correctly for monitoring.

- **Step 1:** Go to **Metrics** in Dynatrace and ensure you have selected the correct metric for SQS message count (Ex: aws.sqs.MessageCount).
- **Step 2:** Create a **metric event** by selecting the metric, and configure it to capture the message count at the granularity you need (for example, every 1 hour).

### **Configuring Metric Threshold:**

- You’ll need to define the threshold for triggering the alert.
- This could be based on the number of messages in the queue over the last hour or another condition specific to your environment.
- Under the **metric event** , configure the threshold condition (e.g., number of messages \> X in the last 1 hour).

Hoping it helps.  
BR,

Peter
