Skip to content

AWS Parallel Computing Service

Collect AWS Parallel Computing Service Metrics

Configuration

Install Func

It is recommended to activate the TrueWatch integration - extension - DataFlux Func (Automata): all preconditions are automatically installed, please proceed with the script installation

If you deploy Func yourself, refer to Self-deploy Func

Install Script

Note: Please prepare the required Amazon AK in advance (for simplicity, you can directly grant the global read-only permission ReadOnlyAccess)

Automata Script Activation

  1. Log in to the TrueWatch console
  2. Click on the 【Integration】 menu, select 【Cloud Account Management】
  3. Click on 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If you have already configured the cloud account information before, ignore this step
  4. Click on 【Test】, after the test is successful, click on 【Save】. If the test fails, please check if the relevant configuration information is correct and test again
  5. Click on the 【Cloud Account Management】 list to see the added cloud account, click on the corresponding cloud account to enter the details page
  6. Click on the 【Integration】 button on the cloud account details page, find AWS Parallel Computing Service under the Uninstalled list, click on the 【Install】 button, and install it in the pop-up installation interface.

Manual Script Activation

  1. Log in to the Func console, click on 【Script Market】, enter the TrueWatch script market, and search for integration_aws_pcs

  2. Click on 【Install】, then enter the corresponding parameters: AWS AK ID, AK Secret, and account name.

  3. Click on 【Deploy Startup Script】, the system will automatically create a Startup script set and automatically configure the corresponding startup script.

  4. After enabling, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click on 【Execute】 to execute it immediately without waiting for the scheduled time. Wait a moment, you can view the execution task record and corresponding logs.

Verification

  1. In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the corresponding automatic trigger configuration, and you can also view the corresponding task record and logs to check for any exceptions
  2. In TrueWatch, check if there is asset information in 「Infrastructure - Resource Catalog」
  3. In TrueWatch, check if there is corresponding monitoring data in 「Metrics」

Metrics

AWS Parallel Computing Service metrics are under the aws_AWS/PCS Measurement, the description column includes the description of each metric and the unit and statistical data.

Metric Description Unit
ActualCapacity IdleCapacity + UtilizedCapacity Count
CapacityUtilization UtilizedCapacity / ActualCapacity Count
DesiredCapacity ActualCapacity + PendingCapacity Count
IdleCapacity Number of instances running but not assigned to tasks Count
UtilizedCapacity Number of instances running and assigned to tasks Count

Object

The collected AWS Parallel Computing Service object data structure can be seen in 「Infrastructure - Resource Catalog」

{
  "measurement": "aws_pcs",
  "tags": {
    "RegionId"            : "ap-southeast-1",
    "clusterId"           : "xxxxx-acd31231xxxxxx",
    "clusterName"         : "xxx-test",
    "arn"                 : "arn:aws:pcs:ap-southeast-1:87xxxxxxx45r:collection/xh9h35ijjctd8nldddxd"
  },
  "fields": {
    "status"                    : "ACTIVE",
    "queues"                    : "[{json data}]",
    "computeNodeGroups"         : "[{json data}]",
    "createdAt"                 : "2025-09-09T02:34:03Z",
    "modifiedAt"                : "xxxxxxx"
  }
}

Note: The fields in tags, fields may change with subsequent updates