Skip to main content

Create custom metrics

In the DoiT console, custom metrics are defined using base metrics (basic metrics, extended metrics, and DataHub metrics) and allocations. The allocations must already exist before you can create a custom metric out of them.

Required permissionsโ€‹

  • Cloud Analytics User, Metrics Manager

Create a metricโ€‹

You can create a new metric either from scratch or based on an existing one.

To create a new metric from scratch:

  1. Sign in to the DoiT console, select Operate from the top navigation bar, and then select Metrics.

  2. Select Create metric in the upper-right corner.

    The Metrics screen

To make a copy of an existing metric, fow either of the approaches below:

  • On the main Metrics screen, select the kebab menu (โ‹ฎ) at the rightmost end of the metric entry, and then select Duplicate.

  • On the configuration page of the metric, select the Clone metric icon.

    The option to clone a metric

Configure the metricโ€‹

  1. Enter a name for the new metric. You can also add a description to the metric.

  2. Define metric variables. Each variable consists of two parts:

    • base metric: This could be a basic metric, an extended metric, or a DataHub metric.

    • scope: An allocation rule.

    Select Add new variable to add more if necessary.

    Create a new metric

  3. Formulate your metric.

    • The variables defined in the previous step are indicated as variables A, B, C etc., according to the order they are defined.

    • Supported operators: +, -, *, /, (, and ). Custom metric formulas support standard order of operations.

    • You also need to set the unit type for the metric: Number, percentage (%), or Currency.

  4. Specify the minimum and maximum number of decimal places (digits to the right of the decimal point) to display in reports. The supported range is 0โ€“5.

    By default, the minimum decimal places value is 0, and the maximum is 2.

  5. (Optional) Select Generate preview to validate your metric.

    You can switch between the Line Chart view and the Table view.

    Preview chart of a custom metric

  6. Save your configuration.