Use this reference to look up the components of a Data Explorer metric query, the commands of the query editor, and the limits that apply to query results.
Every metric query is composed of multiple optional components. For example, this query:

has the following components:
CPU usage % (builtin:host.cpu.usage)Average (avg)Host (dt.entity.host)Host: OS type: LinuxSee below for descriptions of these and other possible query components.
The query editor helps you select query settings that are compatible with the query you configure.
In the example below, if you hover over the i (information) icon in the selection list for Rate, the editor explains why the setting is unavailable for the current query.

In the query editor, select the metric name from the list displayed in the Select metric… box. This can be a built-in metric or a metric ingested from a channel such as StatsD, Prometheus, or Telegraf through the Dynatrace metrics API.
To select the metric
You can type or paste a metric name directly into the box to find all matching metrics. In this example, there are multiple matches. Select the metric in the Host category to add it to your query.

If you have favorited any metrics in the Metrics browser, those metrics are displayed at the top of the list in the metric selector.

You can select a metric category to focus the list of metrics.

When you hover over any metric in the list, a side panel displays details about that metric.

To see more information about that metric, select View all metric information. This opens the Metrics browser in a new tab (so you don't lose your work in Data Explorer) with lots of useful details about the selected metric.
The space aggregation enables you to specify how the resulting data points of a metric query are supposed to be aggregated across dimensions.
The query will always provide the statistically most accurate results for a given query, even if certain metrics provide different statistics, which depends on the nature of each metric.
To change this aggregation, select one from the list immediately following the metric name in the query editor:

Every metric provides the same possible space aggregations: Auto, Average, Count, Maximum, Minimum, Sum, Median, Percentile 10th, Percentile 75th, and Percentile 90th.
By default, a query doesn't split by any dimensions using the metric's aggregation. When splitting by a dimension such as host, the aggregation is used for each host.
To split by a dimension
Split by from the list.If the row's metric is CPU usage %, Host is the only available dimension. In Split by, select Host.
By default, results are sorted in descending order based on the aggregation chosen.
To set the sort order
Sort by from the list.ASC (ascending) or DESC (descending).To set the rate
Rate from the list.None, Per second, Per minute, or Per hour.The scope is determined by any filter you set. By default, the scope is (include all).
To filter your query (change the scope)
Filter by from the list.You can add multiple filters.
If the metric is Action count (by Apdex category) [web] (builtin:apps.web.actionCount.category) and you want to filter for a specific web application named My web application
Web application, then select Name, and then select My web applicationSee also Auto-extended filtering.
By default, the number of metrics you see if they're split by a dimension is 20.
To set an explicit limit
Limit from the list.1, 10, 20, or 100.For Honeycomb and Table visualizations, you can work around this limitation by using Limit > Maximum or turning on Advanced mode and removing :limit(100) from the query.
The global limit aligns records across multiple metrics with the same dimensionality (Split by transformation). If the Global limit is set for a metric, only records that match the dimensions of that metric are included in the result.
The Global limit is automatically displayed if all of the following conditions are met:
Only one metric can be marked as the Global limit. The metric marked as Global limit overrides the Limit transformation of all other metrics with the same Split by transformation. In this case, the Limit for these metrics will appear disabled.
In the Advanced mode, the Global limit is always visible regardless of the conditions.
To set the default value
Default from the list.To set a timeshift value
Timeshift from the list.To shift back two minutes:
-2minuteUse these commands in the query editor to build and run a query. The menu is next to each metric row.
| Command | Effect |
|---|---|
Visualization list | Selects how results are displayed; the default is a graph. For the available types, see Visualization types. |
Adds or removes transformations for a metric row: Default, Filter by, Limit, Rate, Sort by, Split by, and Timeshift. All shows every available field. | |
Add metric | Adds an empty metric row to the query. |
> Duplicate | Copies a metric row so you can edit the copy. |
> Add metric event | Creates a metric event from the query. See Add a metric event. |
Drag a metric row | Reorders the metrics. The order sets the rendering order (the last metric is drawn on top), the column order in a table, and the order of the Settings panel. Rerun the query to see the change. |
Metric letter or | Turns a metric on or off in the query. |
> Delete | Removes a metric row. |
Run query | Runs the query and displays the results. The text next to the button shows the status of the latest run. |
Advanced mode | Shows the underlying Metrics API v2 query for editing. For details, see Write queries in advanced mode. |
To select a visualization, use the list in the upper-left corner of the query definition.

To turn a metric on or off, select its letter or .

After you run a query, the status of the latest run appears next to Run query.

To edit the underlying query, turn on Advanced mode.

To continue observing something you see in a Data Explorer chart, create a metric event from the query.
In the query editor, select > Add metric event.
Settings > Anomaly detection > Metric events opens in a new browser window, so you keep your work in Data Explorer. Add metric event is selected, and the metric fields are filled in from your query where possible.
Complete the metric event definition and save your changes.
Close that browser window and return to Data Explorer.
For details on metric events, see Metric events for alerting.
To work with baselines, correlated metrics, and focus on a graph, see Use Data Explorer results.
Auto-extended filters use the Dynatrace topology (entity model) to offer additional filter dimensions not available in the original metric. They work on both the tile level and the dashboard level.
Some performance metrics for Synthetic events lack the ability to filter them by monitor. However, the same event could happen in multiple monitors, and to look at a single monitor's performance you need the ability to filter for them.
With automatically extended filters, you can now filter on the Synthetic test step.
Action duration - load action (by event) [browser monitor]). It has entity type SYNTHETIC_TEST_STEP.



Moreover, you can now use auto-extended filters on your dashboard, so there's no need to configure multiple tiles to see the same metric for different monitors or different hosts.
Custom dimension.
Synthetic monitor.

In this example, the host metric is extended by EC2 instance.
Create a host-related tile with a host metric (for example, CPU usage % - builtin:host.cpu.usage).
Apply a related filter such as EC2 instance (runsOn).
Now the tile with all hosts is filtered to only the hosts running on that EC2 instance. This is possible even though the dimension EC2 instance doesn't exist on the original host metric. Because the filter uses the topology (entity model), the hosts can be filtered based on that relationship.

In this variation, the host metric is extended by host group.
Set a filter for Host.Host Group (isInstanceOf) and pin the tile to your dashboard.

You can now filter the dashboard tiles by host group.

This example selects the metrics CPU usage % and Memory used %, splits both by host, and displays them as a table so that the rows are hosts and the columns show the metric values per host.
CPU usage % (builtin:host.cpu.usage), Average, Split by HostMemory used % (builtin:host.mem.usage), Average, Split by HostTableYou can use the Global limit to align records across these two metrics. For example, if the Global limit is set for metric A, only records that match the dimensions of metric A are included in the result.
The complete query should look like this:

Example tile:

This example selects the same metrics and displays them as a graph.
When you set Visualization to Graph, the Settings are displayed, where you can select how to graph each metric. In this case, CPU usage % is an area chart (the area between 0 and the value of the metric is filled in) and Memory used % is a line chart (a single line representing the value of the metric over time).
CPU usage % (builtin:host.cpu.usage), Average, Split by HostMemory used % (builtin:host.mem.usage), Average, Split by HostGraphAreaLineYou can use the Global limit to align records across these two metrics. For example, if the Global limit is set for metric A, only records that match the dimensions of metric A are included in the result.
The complete query should look like this:

Example tile:

A visualization shows up to 10 metrics.
A metric shows up to 100 series.
For Honeycomb and Table visualizations, you can work around this limit by using Limit > Maximum, or by turning on Advanced mode and removing :limit(100) from the query.
Data Explorer uses long-term metric data, not trace and request data, so its values can differ from the values in multidimensional analysis.
A query on a dashboard tile created with Data Explorer returns at most 4,000 data points. When the timeframe and resolution would exceed that, Dynatrace switches to a coarser resolution. This limit doesn't apply to visualizations in Data Explorer itself.
Large values use order-of-magnitude notation, such as 7.5M for about 7.5 million. For details, see Order-of-magnitude notation.