Monitoring rules are the core of Data Quality (DQC). Data Quality supports monitoring for MaxCompute, EMR (E-MapReduce), Hologres, AnalyticDB for PostgreSQL, and AnalyticDB for MySQL. This topic describes how to configure monitoring for MaxCompute.
Procedure
Step 1: Add a MaxCompute data source
Go to the Data Sources page.
Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose . On the page that appears, select the desired workspace from the drop-down list and click Go to Management Center.
In the left-side navigation pane of the SettingCenter page, click Data Sources.
Click Add Data Source to add a MaxCompute data source. For more information, see Bind a MaxCompute computing resource.
In the upper-left corner of the page, click the
icon and choose .In the navigation pane on the left of the Data Studio page, click Computing Resources and bind the added MaxCompute computing resource.
NoteThis example uses test data from the MaxCompute public dataset. For your actual business data, configure quality monitoring and quality monitoring rules.
Step 2: Go to the table quality details page
In the upper-left corner of the page, click the
icon and choose .In the navigation pane on the left, click .
In the Data Source list on the left, select a database. Find the table for which you want to configure Data Quality rules. Click the table name or Configure Monitoring Rule in the Actions column to go to the Table Quality Details page.
NoteYou can also find the table by entering its name. Fuzzy search using the first letter of the table name is supported.

Step 3: Create a quality monitoring task
On the Rule Management tab of the Table Quality Details page, click the
icon next to Monitor Perspective to go to the Create Quality Monitoring page.Configure the parameters for the quality monitoring task.
NoteCreate a quality monitoring task based on the verification requirements of the table. For more information about how to create a quality monitoring task, see Configure rules for a single table.

Click Save.
Step 4: Configure Data Quality rules
On the Rule Management tab of the Table Quality Details page, click Create Rule to go to the rule configuration page.
This example uses a system template to create a Data Quality rule.
NoteCreate rules as needed for your table. For more information about how to create rules, see Configure rules for a single table.

Add the rule to the quality monitoring task that you created in Step 3.

Click OK.
Step 5: Test the rule execution
On the Monitor tab of the Table Quality Details page, find the quality monitoring task that you created and click Test in the Actions column.

In the Test Run dialog box, confirm the Timestamp Range and Scheduled Time parameters, and then click Test Run.

After the Startup successful message appears, click View Details to view the results of the test run.
The MaxCompute test table in this example contains more than 2,000 rows. Therefore, the quality check result is abnormal and highlighted in red.

After you confirm that the rule can be triggered, modify the quality monitoring task. Set Trigger Method to Triggered by Node Scheduling in Production Environment to associate the task with a specified recurring schedule task in the DataWorks Operation Center. The quality rules in the monitoring task are then automatically triggered after the associated node finishes running.
Step 6: Subscribe to quality monitoring alerts
On the Monitor tab of the Table Quality Details page, find the quality monitoring task that you created. Then, in the Actions column, click .
Configure the Notification Method and Authorization Object, and then click Save.

Related topics
For more information about how to configure quality monitoring rules and tasks for a single table, see Configure rules for a single table.
You can also configure quality monitoring rules and tasks for multiple tables in batches. For more information, see Configure rules from a template (batch configuration).
To view the execution details of a quality monitoring task, see View quality monitoring execution details.