Job Name | The name of the Scheduled SQL job. |
Task Description | The description of the Scheduled SQL job. |
Resource Pool | The resource pool that is used for data analysis. Log Service provides an enhanced type of resource pool. The enhanced type of resource pool uses the computing capability of Dedicated SQL, can meet concurrent analysis requirements, and isolates resources between Scheduled SQL and your SQL analysis operations in the console. You are charged for the enhanced type of resource pool based on the CPU time that is consumed by your SQL analysis operations. For more information, see Enable Dedicated SQL. |
Write Mode | Select Import Data from Metricstore to Metricstore. The Scheduled SQL feature processes data in the source Metricstore and stores the processed data to the destination Metricstore. |
SQL Code | The query statement. By default, the system displays the statement that is used in Step 4. The preview operation provided for this parameter has the same effect as the preview operation in Step 4. You can click Preview to check whether the query statement is valid and whether the query results contain data. When the Scheduled SQL job is run, Log Service executes this query statement to analyze data. |
SQL Settings |
Result Metric Name | The new name of the metric that you select for analysis. If you want to change the name of the metric, you can specify a new name for the metric in this field. For more information, see Metric.
Important If you select a single metric for analysis, we recommend that you configure this parameter to rename the metric. If you select multiple metrics for analysis and you configure this parameter, all metrics are renamed the name that you specify. |
Rehash | The switch for hashing. If you turn on Rehash, you can configure the Hash Column parameter to write metrics that have the same value for a column to the same shard. This improves data locality and query efficiency. Valid values of the Hash Column parameter vary based on the existing label information of your metrics. For example, if the existing label information of your metrics is {"alert_id":"alert-1608815762-545495","alert_name":"Alert recovery disabled","status":"inactive"} , the valid values of the Hash Column parameter are alert_id, alert_name, and status. If you set Hash Column to status, the metrics that have the same value for status are written to the same shard. |
Additional Tags | The static tags that are used to identify the attributes of a metric. Each tag is in the key-value pair format. For example, you can set label_key to app and set label_value to ingress-nginx. |
Target |
Target Region | The region where the destination project resides. |
Target Project | The name of the destination project that stores the results of the query statement. |
Target Logstore | The name of the destination Metricstore that stores the results of the query statement. |
Write Authorization | The method that is used to authorize the Scheduled SQL job to write data to the destination Metricstore. Valid values: - Default Role: The Scheduled SQL job assumes the AliyunLogETLRole system role to write the analysis results to the destination Metricstore.
Important Authorization is required only the first time that you create a Scheduled SQL job and must be completed by using the Alibaba Cloud account to which the destination project belongs. - Custom Role: The Scheduled SQL job assumes a custom role to write the analysis results to the destination Metricstore.
You must grant the custom role the permissions to write data to the destination Metricstore. Then, enter the Alibaba Cloud Resource Name (ARN) of the custom role in the Role ARN field.
|
SQL Execution Authorization | The method that is used to authorize the Scheduled SQL job to read data from the source Metricstore and analyze the data by using SQL statements in the current project. Valid values: - Default Role: The Scheduled SQL job assumes the AliyunLogETLRole system role to perform the required operations.
Important Authorization is required only the first time that you create a Scheduled SQL job and must be completed by using the Alibaba Cloud account to which the destination project belongs. - Custom Role: The Scheduled SQL job assumes a custom role to perform the required operations.
You must grant the custom role the required permissions. Then, enter the ARN of the custom role in the Role ARN field. For more information, see Step 1: Grant RAM Role A the permissions to analyze log data in a source Logstore.
|