Use Metrics Explorer to Monitor Resources by Their Tags and Properties - Amazon CloudWatch

Use Metrics Explorer to Monitor Resources by Their Tags and Properties

Metrics explorer is a tag-based tool that enables you to filter, aggregate, and visualize your metrics by tags and resource properties, to enhance observability for your services. This gives you a flexible and dynamic troubleshooting experience, so that you to create multiple graphs at a time and use these graphs to build your application health dashboards.

Metrics explorer visualizations are dynamic, so if a matching resource is created after you create a metrics explorer widget and add it to a CloudWatch dashboard, the new resource automatically appears in the explorer widget.

For example, if all of your EC2 production instances have the production tag, you can use metrics explorer to filter and aggregate metrics from all of these instances to understand their health and performance. If a new instance with a matching tag is later created, it's automatically added to the metrics explorer widget.

With metrics explorer, you can choose how to aggregate metrics from the resources that match the criteria, and whether to show them all in a single graph or on different graphs within one metrics explorer widget.

Metrics explorer includes templates that you can use to see useful visualization graphs with one click, and you can also extend these templates to create completely customized metrics explorer widgets.

To create a visualization with metrics explorer and optionally add it to a dashboard, follow these steps.

To create a visualization with metrics explorer

  1. Open the CloudWatch console at

  2. In the navigation pane, choose Explorer.

  3. Do one of the following:

    • To use a template, select it in the box that currently shows Empty Explorer.

      Depending on the template, the explorer might immediately display graphs of metrics. If it doesn't, choose one or more tags or properties in the From box and then data should appear. If it doesn't, use the options at the top of the page to display a longer time range in the graphs.

    • To create a custom visualization, under Metrics, choose a single metric or all the available metrics from a service.

      After you choose a metric, you can optionally repeat this step to add more metrics.

  4. For each metric selected, CloudWatch displays the statistic that it will use immediately after the metric name. To change this, choose the statistic name, and then choose the statistic that you want.

  5. Under From, choose a tag or a resource property to filter your results.

    After you do this, you can optionally repeat this step to choose more tags or resource properties.

    If you choose multiple values of the same property, such as two EC2 instance types, the explorer displays all the resources that match either chosen property. It's treated as an OR operation.

    If you choose different properties or tags, such as the Production tag and the M5 instance type, only the resources that match all of these selections are displayed. It's treated as an AND operation.

  6. (Optional) For Aggregate by, choose a statistic to use to aggregate the metrics. Then, next to for, choose how to aggregate the metric from the list. You can aggregate together all the resources that are currently displayed, or aggregate by a single tag or resource property.

    Depending on how you choose to aggregate, the result may be a single time series or multiple time series.

  7. Under Split by, you can choose to split a single graph with multiple time series into multiple graphs. The split can be made by a variety of criteria, which you choose under Split by.

  8. Under Graph options, you can refine the graph by changing the period, the type of graph, the legend placement, and the layout.

  9. To add this visualization as a widget to a CloudWatch dashboard, choose Add to dashboard.