Monitor Amazon EC2

Find the instances that fail status checks or run hot on CPU. The EC2 view draws each instance as a dot inside its region and availability zone and lists the groups that need attention.

The EC2 view shows every Amazon EC2 instance that Dash0 knows in the selected dataset and time range. It draws each instance as a dot, collects the dots into circles by region, Auto Scaling group, account, or availability zone, and colors the instances that have a problem. To open it, go to Infrastructure > AWS > EC2.

EC2 map grouped by region and availability zone, with one dot per instance and red and yellow dots in us-east-1, eu-west-1, and us-west-2

For the parts that all AWS views share, such as filters, the Map and Table toggle, and Needs attention, see About AWS Service Views.

Requirements

  • AWS integration: An AWS account connected to Dash0. See Set Up AWS Integration.
  • AWS/EC2 metrics: The view reads CloudWatch metrics of the AWS/EC2 namespace. Turn the namespace on in the integration's Metrics tab, as described in Collect AWS CloudWatch Metrics. Metrics from a CloudWatch Metric Stream work too.

The view uses these metrics:

CloudWatch metricUsed for
CPUUtilizationAvg CPU, the status, the CPU column, Peak CPU, and the CPU utilization chart
NetworkIn, NetworkOutNetwork in, Network out, the Idle status, and the Network throughput chart
StatusCheckFailedThe Critical status and Failed status checks
StatusCheckFailed_Instance, StatusCheckFailed_System, StatusCheckFailed_AttachedEBSThe Failed status checks chart in the panels
CPUCreditBalanceThe Attention status and CPU credit balance in the instance panel
EBSReadOps, EBSWriteOpsThe EBS ops column and the EBS operations chart
EBSReadBytes, EBSWriteBytesThe EBS throughput chart
EBSIOBalance%, EBSByteBalance%The EBS burst balance chart
Collect CPUUtilization and StatusCheckFailed

The view decides from CPUUtilization whether an instance reports metrics. An instance that sends other AWS/EC2 metrics but not this one reads as No data. The Critical status reads StatusCheckFailed. The three separate status check metrics feed only the chart.

An instance appears when it has CPUUtilization data in the selected time range, or when Dash0 finds it among the resources of your AWS account in that time range. Dash0 shows the value of the instance's Name tag as its name, and the instance ID when there is no Name tag. The name, the availability zone, and the Auto Scaling group come from the resource that Dash0 found, not from the metrics.

Fleet Numbers

The cards on top cover the instances that match the filters, including the status filter. Each instance contributes one value for the whole selected time range.

  • Instances: The number of instances, including the ones without data.
  • Avg CPU: The mean of the instances' average CPU. Every reporting instance counts the same.
  • Network in: The incoming network traffic of all reporting instances, in bytes per second.
  • Network out: The outgoing network traffic of all reporting instances, in bytes per second.
  • Failed status checks: The number of instances with at least one failed status check. It counts instances, not checks. The table column of the same name counts the failed checks of one instance.

Read the Map

The EC2 map works differently from the maps of the other AWS views. It is a dot map. Each dot is one instance, and circles collect the dots into groups. Every instance that matches the filters is on the map, including the instances without data.

Group by sets the outer circles. It offers Region, Auto Scaling group, Account, and Availability zone, and starts on Region. then splits each outer circle into inner circles. Its options depend on Group by:

Group bythen
RegionNone, Auto Scaling group, Account, Availability zone
Auto Scaling groupNone, Availability zone
AccountNone, Region, Auto Scaling group, Availability zone
Availability zoneNone, Auto Scaling group, Account

Dash0 presets then to the first level that splits at least one outer circle in two. For Region, it tries Availability zone first, so a region with instances in several zones shows one inner circle per zone. A new Group by value resets then and zooms the map out. A page reload returns the grouping and the zoom to their defaults.

The us-west-2 region zoomed in, with two critical instances in us-west-2a, one attention instance in us-west-2b, and the healthy us-west-2c zone faded

  • Circle size: A circle grows with the number of instances in it.
  • Labels: A circle's label is the group name. If the group has critical instances, the label adds their number, for example us-west-2a · 2 critical. Otherwise it adds the number of attention instances, for example us-west-2b · 1 attention. A group with both shows only the critical number, which is why the region above reads us-west-2 · 2 critical. The map cuts long names with "…" and skips a label that would overlap another one.
  • Inner circles: The inner circles and their labels appear as you zoom into an outer circle. Inside a group with critical or attention instances, the inner groups that have neither fade, as us-west-2c does above.
  • Groups without a value: Instances that lack the value of a level collect in No region, No account, No availability zone, or No Auto Scaling group.
  • Auto Scaling groups with the same name: The map keeps groups from different accounts or regions apart and adds the region and account ID to the name.

The color of a dot is the status of its instance:

DotStatus
Red with a glowCritical
Yellow with a glowAttention
GrayHealthy and Idle
Faint grayNo data

The map draws an idle instance exactly like a healthy one, and the legend has no Idle entry. Only the dot's tooltip, the table, and the instance panel say Idle.

Select a circle to zoom into it. You can also scroll, or use Zoom in and Zoom out at the bottom right. Drag to move a zoomed map. Press Esc or select the empty space outside a circle to go one level out.

Hover over a dot to see the instance name, its status with the reason, and its instance ID, availability zone, and account. Hover over a circle to see how many instances it holds and how many of them are Critical, Attention, and No data. Select a dot at any zoom level to open the instance panel.

Instance Status

Dash0 gives each instance one of five statuses. It checks the rules from top to bottom, and the first match sets the status.

StatusRule
No dataDash0 found the instance, but no CPUUtilization data arrived in the time range
CriticalAt least one status check failed in the time range
AttentionThe average CPU is 85% or more, or the lowest CPU credit balance in the time range is below 20
IdleThe average CPU is below 1%, and network traffic in and out together is below 1 KB/s
HealthyThe instance reports metrics and matches none of the rules above

Because the first match wins, an idle instance with fewer than 20 CPU credits reads as Attention. The credit rule applies only to instances that report a CPU credit balance, which are the burstable ones.

The status reads the whole time range

Every rule uses one value per instance for the whole selected time range, not the latest value. A longer time range therefore changes statuses. One failed check anywhere in the range makes an instance Critical, and a long range flattens a short CPU spike below the 85% limit.

AWS publishes no throttle metric for EC2, so the status does not cover throttling.

Needs Attention

Needs attention sits beside the map and is not part of the table view. Its entries are groups, not single instances. Each entry is one group with one reason, so a zone with two different problems gets two entries, and the number next to the title counts entries.

An entry names the inner group, with the outer group on a second line. With Region then Availability zone, an entry names us-west-2a, with us-west-2 below it and the reason 2 instances failed status checks. With then set to None, the entry names the outer group. There are four reasons, each with the number of instances it applies to:

Reason, for exampleStatus of the instances
2 instances failed status checksCritical
1 instance runs hot on CPUAttention, average CPU of 85% or more
1 instance is low on CPU creditsAttention, fewer than 20 CPU credits
3 instances send no AWS/EC2 metricsNo data

Critical entries come first, then attention entries, then entries without data. Within a status, the entry with more instances comes first. The list follows the filters.

Hover over an entry to ring its instances on the map. Select it to zoom the map to its group. This does not open a panel. Select a dot in the group to open an instance. The list reads "No instances need attention" only when no instance is Critical, Attention, or No data.

Table View

The table lists every instance that matches the filters, Critical instances first. All columns sort. Select a row to open the instance panel.

ColumnShows
StatusThe status. The info icon in the column header explains the rules.
InstanceThe value of the Name tag, or the instance ID
Instance IDThe instance ID
AZThe availability zone
AccountThe AWS account ID
CPU, UsageThe average CPU in percent, and a small chart of it over the time range
Network, InThe average incoming traffic in bytes per second
Network, OutThe average outgoing traffic in bytes per second
EBS opsEBS read and write operations per second
Failed status checksThe number of failed status checks in the time range

You can filter from the headers of Instance, AZ, and Account. The table has no region column, so use the cloud.region filter. An instance with the status No data shows a dash in every metric column, never 0.

Instance Panel

Select a dot on the map or a row in the table to open the instance panel. The Overview tab shows:

  • Summary: Account ID, Region, Availability Zone, Instance ID, and Auto Scaling group for group members. Open in AWS console opens the instance in AWS.
  • Health: Status, Avg CPU, Peak CPU, Failed status checks, and, for instances that report it, CPU credit balance. Hover over the status to read its rule. An instance without data shows only Status.
  • Charts: CPU utilization, Network throughput, Failed status checks split into Instance, System, and Attached EBS, EBS operations, EBS throughput, and EBS burst balance. View in Metrics opens a chart's queries in the query builder. The charts use steps of at least 5 minutes, because EC2 basic monitoring publishes a datapoint every 5 minutes.

The Attributes tab lists the instance's resource attributes, with a search field. To let Agent0 investigate the instance, select Ask Agent0.

Auto Scaling Group Panel

Select the Auto Scaling group link in an instance's Summary to open the group's panel. Selecting a group's circle on the map zooms and does not open this panel.

The group consists of the instances with the same aws:autoscaling:groupName tag in the same account and region. The panel shows all of them, whatever filter is set on the page.

  • Summary: Account ID, Region, Auto Scaling group, and Availability Zones. Open in AWS console opens the group in AWS.
  • Health: Status is the status of the worst member. Instances is the number of members. Failed status checks is the number of members with a failed check, as on the card on top.
  • Instances: The members with their status, average CPU, and failed status checks, the worst status first. Select a member to open its panel. Back to with the group name returns to the group.
  • Charts: CPU utilization · busiest instances draws the five members with the highest average CPU. Network throughput and Failed status checks cover the whole group.

Troubleshooting

  • "Connect your AWS account" although an account is connected: Dash0 found no EC2 instance in this dataset and time range, with or without metrics. Check that the AWS/EC2 namespace is turned on in the integration's Metrics tab, check the dataset, and pick a longer time range.
  • "We found your EC2 instances, but no AWS/EC2 metrics arrive": Dash0 found instances in your account, but none of them reports metrics. All instances read No data. Select Open the AWS integration and collect the AWS/EC2 namespace.
  • One instance reads No data: Its panel says "No AWS/EC2 metrics arrived for this instance in the time range." The instance may be stopped, or the integration does not collect its metrics. The view itself does not read whether an instance runs. Select the EC2 metrics on the AWS integration opens the metrics settings.
  • An instance has no name and sits in No availability zone: The instance reports metrics, but Dash0 did not find it among the resources of your account. It also has no Auto Scaling group, and it disappears as soon as you filter by region, account, or tag. Clear the filter to see it again.
  • "Showing the first 2000 instances that report metrics": The view loads at most 2000 reporting instances. Filters and totals then cover only these, and instances without metrics are left out.
  • "No instances match these filters": The filter leaves no instance. The table says "No instances match the filter. Change or clear the filter." Remember that the status is a filter too.
  • "EC2 instance not found": The instance reported nothing in the time range, or it no longer exists. Pick a longer time range.
  • "No access to EC2 metrics": You need Read access to the dataset. Ask an Admin of your organization.

Further Reading

Last updated: