Create calculated metrics for mobile applications

In Dynatrace, you can create calculated metrics to make your current analysis available for charting and API usage. You can also leverage calculated metrics to add custom alerts.

Once you select the application you're interested in, you can use Multidimensional Analysis to select aspects of your user actions and create a calculated metric. You can choose if you want to split your selected performance metrics by another dimension, such as geolocation, browser, and error type, or only use single dimensions, such as user action properties.

Dashboard with custom charts based on calculated metrics

Create a calculated metric

To create a calculated metrics from your application

  1. Go to Frontend and select the application for which you want to create a metric.

  2. Under Top 3 actions, select Analyze performance.

  3. Select the desired OS family, Contribution, timeframe, and Analyze by options.

  4. optional Use the filter bar to add filters for geolocation, manufacturer, Apdex, and more to focus the resulting metric on what you're interested in.

  5. Select Create metric.

    Creating a metric on the Multidimensional analysis page

  6. optional Change the metric name and key, and turn on Split by <dimension name>.

    For mobile and custom applications, you cannot split a metric by user action property. Splitting by user action property is available only for web applications.

  7. Select Create metric.

    Overlay for creating a metric

Use the metric to create a custom chart or alert.

Only new data is written to calculated metrics; retrospective data is not included.

You can have up to 500 enabled calculated metrics per environment across all applications and up to 100 enabled calculated metrics per application.

Example

In this example, let's analyze Price, which is a user action property, and filter it by Loyalty status, which is another user action property.

On the Multidimensional analysis page, select the timeframe for the analysis. To filter out prices paid by platinum customers only, we select Price in the Analyze by list box and then set additional filters by selecting String property, Loyalty status, and Platinum.

Example - Revenue by platinum customers

We can also create a metric and generate a custom chart.

Example - Create a metric

Create custom charts based on calculated metrics

Creating charts can help you to analyze combinations of application metrics directly on your dashboard. You can split and filter available entities to fine-tune the metric dimensions that appear in your charts and filter out entities that are relevant to you.

For details on creating charts and pinning them to your dashboards, see Data Explorer.

Manage metrics

After you've created a calculated metric, you can view its properties, delete it, temporarily disable it, or create a chart or a metric event for it.

Once a metric has been created, you can't change its properties.

  1. Go to Frontend.
  2. Select the application that you want to configure.
  3. Select More () > Edit in the upper-right corner of the tile with your application name.
  4. From the application settings, select Metrics.
  5. Select the metric you want to manage and check its properties or perform one of the following actions.
    • Enable or disable Toggle icon the metric
    • Copy the API URL for the metric
    • Create a chart with Data Explorer
    • Create alert to create a metric event
    • Delete metric