Amazon EC2
Grafana AWS Observability offers an out-of-the-box, embedded experience for you to efficiently explore and drill into your Amazon EC2 data. You can monitor your EC2 instances without managing and configuring local agents or building dashboards.
Navigate to EC2 dashboard
- To see EC2 data, configure CloudWatch metrics and create your scrape job. You’ll see the job in the list of scrape jobs on the Configuration Details tab.
- In the main menu, click AWS to open the Service overview tab.
List of scrape jobs on Service overview tab - Locate the EC2 service in the list, and click AWS EC2 in the last column of the table to open the EC2 dashboard page in the Overview tab.
View instances at a high level
The Overview tab provides a high-level look of all EC2 instances across all your accounts and regions within a selected time frame, starting with a graph of instance count in all regions.
The default columns, which you can filter and sort, include:
- Names of scrape jobs, tag, and autoscaling groups
- CPU utilization average and max percentages
- Average
ESBIOBalance%
andEBSByteBalance%
![**Overview** tab showing instances for last six hours **Overview** tab showing instances for last six hours](/media/docs/grafana-cloud/aws/aws-ec2-dashboard.png)
You can use the Overview page to:
- Uncover anomalies in your data.
- Identify instances that do not contain expected tags.
- Discover potential issues, such as instances with higher CPU than normal or instances that are about to burst or hit IO limits.
- Add or remove tags and metrics within the selectors for more granularity.
Tag selector
Filter your views to narrow your focus to instances that you and your team care about, based on how you’re using AWS tags. For example, if you’re using tags to associate instances with the services being hosted, you can narrow your view to contain only instances for the services that your team owns.
When you add or remove tags, these are reflected in the URL as well. Then you can share the URL or bookmark it to come back to the same view later.
Drill into instance detail
From the list of instances on the Overview tab, click an instance for detailed information within a selected time frame.
The instance detail page includes instance metadata. This metadata can be helpful to access the instance, view more in the AWS portal, or understand what is running on the instance.
You can also explore the following CloudWatch metrics for the instance in your selected time frame:
CPUUtilization
Networkin
andNetworkout
DiskWriteOps
andDiskReadOps
StatusCheckFailed
ebsReadBytes
andebsWriteBytes
ebsReadOps
andebsWriteOps
Close and expand panels for greater focus.
View regions
On the Regions tab, view instance count within a selected time frame by:
- Region
- Tag
- All regions
![**Regions** tab **Regions** tab](/media/docs/grafana-cloud/aws/ec2-regions-tab.png)
On this page you can:
- View how your instances scale over a region.
- Choose a tag to see how the instance autoscales.
View resources for optimization
On the Rightsizing tab, sort by highest or lowest usage. When you sort from the bottom, you can identify:
- Where to allocate more resources
- Which instances are not fully utilized and you should repack
- The amount of instances to scale down due to lack of need
![**Rightsizing** tab sorted from the bottom **Rightsizing** tab sorted from the bottom](/media/docs/grafana-cloud/aws/ec2-rightsizing-tab.png)
You can also select the number of instances you would like to see in each table. Instances in the middle range (for instance, the instances that are in the 20th - 40th percentile for a certain metric) could indicate opportunities to repack.
Troubleshooting
The EC2 pages and panels require specific metrics to display all data correctly. If you do not see specific (or any) columns displaying in the list of instances, or panels are showing no data, you can reset your EC2 service to scrape the default metrics by completing the following steps:
- Navigate to the Configuration Details tab.
- Click Edit next to the scrape job you want to change.
Scrape job - Click the icon next to AWS/EC2 to expand the metrics details.
Icon for expanding details - Scroll until you see the buttons that control the settings.
Expanded details with settings buttons - Click Reset to defaults. This will ensure all metrics required for viewing EC2 data are set.
- Click Save service settings.
Was this page helpful?
Related resources from Grafana Labs
![Getting started with the Grafana LGTM Stack](/static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=200 200w, /static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=400 400w)
![Intro to Kubernetes monitoring in Grafana Cloud](/media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=200 200w, /media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=400 400w)
![Building advanced Grafana dashboards](/media/webinar/AMER_buildadv_notxt.png?w=200 200w, /media/webinar/AMER_buildadv_notxt.png?w=400 400w)