Skip to content

Collector 'Alibaba Cloud - Resource Package' Configuration Manual

Before reading this document, please read:

Tip

Before using this collector, you must install the 'Integration Core Package' and its accompanying third-party dependencies.

1. Configuration Structure

The configuration structure of this collector is as follows:

Field Type Required Description
products list Required List of product codes
products[#] str Required Product code.
Currently supported: ossbag, flowbag, cdnflowbag, CDN, dcdn, ots, live, vod, hdr, cdi, hbr, sls

2. Configuration Example

Specifying Product Codes

Collect resource package information for product codes ossbag, sls

collector_configs = {
    'products': [ 'ossbag', 'sls' ]
}

3. Data Reporting Format

After data is successfully synchronized, you can view the data in the 'Infrastructure - Resource Catalog' of TrueWatch.

An example of the reported data is as follows:

{
  "measurement": "aliyun_resource_package",
  "tags": {
    "name"       : "OSSBAG-cn-xxxxxxxxxx",
    "DeductType" : "Absolute",
    "InstanceId" : "OSSBAG-cn-xxxx",
    "PackageType": "FPT_ossbag_absolute_Storage_china_common",
    "ProductCode": "ossbag",
    "Remark"     : "Standard Storage Package (Mainland China)",
    "Status"     : "Available"
  },
  "fields": {
    "EffectiveTime"      : "2021-12-19T04:15:47Z",
    "ExpiryTime"         : "2022-12-19T16:00:00Z",
    "RemainingAmount"    : "10",
    "RemainingAmountUnit": "TB",
    "TotalAmount"        : "10",
    "TotalAmountUnit"    : "TB",
    "message"            : "{JSON data of this resource package}"
  }
}
Note

Fields in tags and fields may change with subsequent updates.

Tip

The value of tags.name is the instance ID, which serves as a unique identifier, and fields.message is the JSON serialized string.