Skip to content

Configuration Manual for the "Alibaba Cloud - Redis" Collector

Before reading this article, please read the following first:

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

This collector supports collecting resources of three architecture types: Standard Edition, Cluster Edition, and Read-Write Split Edition

1. Configuration Structure

The configuration structure of this collector is as follows:

Field Type Required Description
regions list Required List of regions to collect data from
regions[#] str Required Region ID. Example: 'cn-hangzhou'
Refer to appendix for full list

2. Configuration Example

Specify Regions

Collect data from Hangzhou and Shanghai regions.

Python
1
2
3
collector_configs = {
    'regions': [ 'cn-hangzhou', 'cn-shanghai' ]
}

3. Data Reporting Format

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

An example of the reported data is as follows:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  "measurement": "aliyun_redis",
  "tags": {
    "name"            : "r-bp12xxxxxxx",
    "InstanceId"      : "r-bp12vxxxxxxxxx",
    "RegionId"        : "cn-hangzhou",
    "ZoneId"          : "cn-hangzhou-h",
    "InstanceClass"   : "redis.master.small.default",
    "EngineVersion"   : "5.0",
    "ChargeType"      : "PrePaid",
    "ConnectionDomain": "r-bp12vxxxxxxx.redis.rds.aliyuncs.com",
    "NetworkType"     : "VPC",
    "PrivateIp"       : "xxxxxx",
    "Port"            : "6379",
    "InstanceName"    : "xxx System",
    "InstanceType"    : "Redis",
    "InstanceStatus"  : "Normal",
    "ArchitectureType": "standard",
  },
  "fields": {
    "Tags"      : "[Tags set in the cloud console]",
    "Capacity"  : "1024",
    "EndTime"   : "2022-12-13T16:00:00Z",
    "CreateTime": "2021-01-11T09:35:51Z",
    "Accounts"  : "[{JSON account information}]",
    "message"   : "{JSON instance data}"
  }
}

Fields in tags and fields may change with subsequent updates

The value of tags.name is the Instance ID, used as a unique identifier

The parameter tags.PrivateIp will not be returned if the network type of the instance is Classic Network

fields.message, fields.Tags, and fields.Accounts are JSON serialized strings

X. Appendix

Please refer to the official Alibaba Cloud documentation: