Updated on 2024-08-30 GMT+08:00

Creating a Metric

You can manage all business metrics, including the metric sources and definitions. Business metrics are stored in directories.

Metrics in DataArts Quality are independent of business metrics and technical metrics in DataArts Architecture.

Prerequisites

You have created a home directory. To create a home directory, log in to the DataArts Studio console, click Access under a specific instance, choose More > DataArts Quality on the Workspaces tab page, choose Metric Monitoring > Metric Management from the left navigation bar on the page displayed, and create a directory. Before creating a metric for a data connection, select a directory to store the metric. For details, see Figure 1.

Figure 1 Directory that stores the metric to create
Table 1 Buttons in the navigation bar

No.

Description

1

Create Directory

2

Refresh Directory

3

Right-click All to create, rename, or delete a directory.

Creating a Metric

  1. Log in to the DataArts Studio console by following the instructions in Accessing the DataArts Studio Instance Console.
  2. On the DataArts Studio console, locate a workspace and click DataArts Quality.
  1. Choose Metric Monitoring > Metrics from the left navigation bar.
  2. Click Create. In the dialog box displayed, set the parameters based on Table 2.
    Table 2 Metric parameters

    Parameter

    Description

    Metric Name

    The name of a metric, which contains 1 to 64 characters and consists of only letters, numbers, and underscores (_).

    Data Connection

    Select a created data connection from the drop-down list box.

    NOTE:
    • Currently, only DWS, MRS Hive, DLI, MRS ClickHouse, and Doris are supported.
    • Metrics are closely connected based on data connections. Therefore, you must establish data connections in the metadata management module before creating metrics.

    Database/Queue

    Select the database where the metric runs.

    NOTE:

    If DLI is selected as the data connection, a running queue is required.

    Description

    Information to better identify a metric. It cannot exceed 4096 characters.

    Directory

    Directory for storing metrics. You can select a created directory. Figure 1 shows the directory.

    Metric Type

    Custom is supported.

    You can customize an SQL statement to define the metric source.