Skip to content

Configuration Manual for "Alibaba Cloud-DNS" Collector

Before reading this, please refer to:

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

1. Configuration Structure

This script requires no additional configuration.

2. Data Reporting Format

After data synchronization is normal, you can view the data in the 'Infrastructure - Custom' section of TrueWatch.

The example of data reported by DNS (Free Plan) is as follows:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{
  "measurement": "aliyun_dns",
  "tags": {
    "name"       : "ccc16844xxxxx",
    "DomainId"   : "ccc16844xxxxx",
    "DomainName" : "slo.xxxxx",
    "VersionCode": "mianfei",
    "VersionName": "Alibaba Cloud DNS"
  },
  "fields": {
    "CreateTime": "2021-10-17T02:01Z",
    "message"   : "{Instance JSON data}"
  }
}

The example of data reported by DNS (Paid Plan) is as follows:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
{
  "measurement": "aliyun_dns",
  "tags": {
    "name"          : "dns-cn-xxxxx",
    "DomainId"      : "dns-cn-xxxxx",
    "DomainName"    : "slo.xxxxx",
    "VersionCode"   : "xxxxxx",
    "InstanceId"    : "dns-cn-xxxxx",
    "VersionName"   : "Alibaba Cloud DNS",
    "account_name"  : "Alibaba Cloud account used for script development",
    "cloud_provider": "aliyun"
  },
  "fields": {
    "CreateTime"     : "2021-10-17T02:01Z",
    "InstanceEndTime": "2022-04-24T16:00Z",
    "InstanceExpired": false,
    "message"        : "{Instance JSON data}"
  }
}

The fields in tags and fields may change with subsequent updates

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

X. Appendix

Please refer to the official Alibaba Cloud documentation: