Skip to content

Configuration Manual for the "Alibaba Cloud - Resource Package" Collector

Before reading this, please first read:

Before using this collector, you must install the 'Integration Core Package' and its associated third-party dependency packages

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

Specify Product Code

Collect resource package information for product codes ossbag and sls.

Python
1
2
3
collector_configs = {
    'products': [ 'ossbag', 'sls' ]
}

3. Data Reporting Format

After data synchronization, you can view the data in the {{( brand_name )}} "Infrastructure - Resource Catalog".

Example of reported data:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
{
  "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}"
  }
}

Fields in tags and fields may change with subsequent updates

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