Create calculated metrics for web 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 metric

To create a calculated metrics from your application

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

  2. Scroll down to Impact of user actions on performance and select Analyze performance.

  3. On the User action analysis page, select the desired timeframe, options, and filters.

  4. Select one of the Analyze by options and a performance metric that you want to create the metric for.

  5. optional Use the filter bar to add filters for geolocations, browser versions, user action properties, and more to focus the resulting metric on what you're interested in.

  6. Select Create metric.

    Creating a metric on the Multidimensional analysis page

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

  8. optional Select Advanced options if you want to additionally specify or change the following parameters.

    • Metric
    • Metric name
    • Metric key for API usage
    • Filters
    • Split-by parameters
  9. Select Create 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 Web.
  2. Select the application that you want to configure.
  3. In the upper-right corner of the application overview page, select More () > Edit.
  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.