# EC2 metrics are not showing in inventory while creating Alerts

**URL:** https://discuss.elastic.co/t/ec2-metrics-are-not-showing-in-inventory-while-creating-alerts/260140
**Category:** Elastic Observability
**Created:** [January 5, 2021, 12:41am UTC](https://discuss.elastic.co/t/ec2-metrics-are-not-showing-in-inventory-while-creating-alerts/260140 "2021-01-05T00:41:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![minu.ajith](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@minu.ajith](https://discuss.elastic.co/u/minu.ajith)
#### Post date: [January 5, 2021, 12:41am UTC](https://discuss.elastic.co/t/ec2-metrics-are-not-showing-in-inventory-while-creating-alerts/260140/1 "2021-01-05T00:41:44Z")

</div>

Hi,

I was trying to create alerts for EC2 CPU usage. The metrics for aws.ec2.cpu.total.pct is appearing fine in Kibana.

# However, when I am trying to create an alert for the following condition and run a preview

##### Inventory

#### Conditions

FOR EC2 Instances

WHEN CPU usage

IS ABOVE 90

%

# FOR THE LAST 1 minute

# I am getting the following message

# There were **0 instances** across **3 awsEC2s** that satisfied the conditions of this alert in the last hour.

I have around 12 EC2 instances. why its showing on 3awsEC2s.

Regards,  
Minu

---

<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: [November 4, 2022, 8:20am UTC](https://discuss.elastic.co/t/ec2-metrics-are-not-showing-in-inventory-while-creating-alerts/260140/2 "2022-11-04T08:20:52Z")

</div>


