Break down a chart by labels

When investigating an issue, use the Metrics Explorer breakdown feature to determine if specific resource types or locations are the cause. Metrics Explorer can break a chart into a series of tiles, each displaying time-series data for a specific label key. This view helps you identify spikes, dips, or trends that aggregation might otherwise hide.

Why you should break down your chart

Breaking down a chart by labels helps you identify root causes by isolating data for specific resource types or locations.

Metrics Explorer creates this breakdown as a grid of tiles. Each tile represents a specific label key, surfacing spikes, dips, and trends that are typically hidden by aggregation. This breakdown helps you identify which factors are contributing to an issue and refine your analysis by applying filters directly from the tiles.

The following chart illustrates this:

Chart displaying aggregated time-series data as a single, relatively flat line.

This chart shows a single time series where the values are not changing significantly. However, this chart hides underlying data. How many time series are combined? Are there any time series with significant spikes, dips, or trends?

In contrast, the following shows same chart, but the data is broken down by key:

Breakdown view with multiple time-series tiles, including one that shows a significant data spike.

The breakdown shows multiple time series with data collected from various regions and different machine types. It also shows a data spike that might be related to resources in a specific region or to an application.

Before you begin

Break down a chart

To break down your chart by labels:

  1. In the toolbar of Metrics Explorer, select Show breakdown.

    The display updates to show a split screen with the following panes:

    • Your chart.
    • A menu with the text Breakdown by label.
    • A collection of tiles. Each tile displays a chart, a label key, and a Breakdown button. Each tile corresponds to a key associated with your metric and resource labels.

    The two earlier images in this document illustrate a chart and the tiles that show the data grouped by key.

  2. When you display a breakdown by label key, you have two options:

    • Select Close breakdown to return to Metrics Explorer.

    • On a tile, select Breakdown. This applies a breakdown for a specific label key and updates the tiles pane. The updated pane displays each tile with the label value and an Add Filter button.

    For example, if you select Breakdown on the zone tile, you see a tile for each zone with metric data:

    Display one tile for each zone.

  3. When you display a breakdown by a specific label, you have two options:

    • Select Back on the toolbar that displays that button and text similar to Select a value for some-key.

      You return to the split screen that shows a breakdown by label key.

    • On a tile, select Add Filter.

      For example, if you select Add Filter on the us-east1-b tile, your query includes the filter zone=us-east1-b. Your chart and the tiles show only time series that match the filter. The tiles pane also doesn't display a tile for the zone key.

  4. Optional: Break down your chart by additional label keys.

  5. To return to Metrics Explorer, select Close breakdown.

You can perform these actions at any time:

  • Remove filters. To remove a filter, select Close on the filter.
  • Use the menu and search fields to find a specific label.
  • Save your chart to a custom dashboard.

Limitations

  • You can only break down line charts. This feature isn't available for other types of charts, such as heatmaps.

  • You can't save the split screen, which shows your chart and a breakdown by key.

What's next

  • Explore charted data: Describes how to use chart controls to highlight timeseries, change the chart resolution, show outliers, and compare current to past data.

  • Set chart display options: Describes how to change the the visual display of your chart.