Creating Metrics

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

Note that metrics in DQC are independent of the business and technical metrics in Data Design.

Entry

To create a metric, you must select a directory first. For details, see Figure 1.

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

No.

Description

1

Create Directory

2

Refresh Directory

3

Select All. Right-click to create metrics, as well as to create, delete, and rename directories.

Creating a Metric

  1. Log in to the DGC console, select a DGC instance, and click Access.

    On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.

  1. Click Data Quality Control of the corresponding workspace.

    The system navigates to the Data Quality Control console.

  1. Choose Metric Management from the left navigation bar.
  2. Click Create. In the dialog box that is displayed, set parameters described in Table 2.
    Table 2 Parameters

    Parameter

    Description

    Metric Name

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

    Data Connection

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

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

    Database/Queue

    Select the database where the metric runs.

    NOTE:

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

    Metric Description

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

    Metric Directory

    Directory for storing metrics. You can select a created directory. Figure 1 describes how to create a directory.

    Metric Type

    Custom is supported.

    You can customize a SQL statement, to define the metric source.