Skip to content

Collector 'Alibaba Cloud-DNS' 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

This script does not require additional configuration.

2. Data Reporting Format

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

The following is an example of data reported by DNS (Free Plan):

{
  "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 following is an example of data reported by DNS (Commercial Plan):

{
  "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 for Script Development",
    "cloud_provider": "aliyun"
  },
  "fields": {
    "CreateTime"     : "2021-10-17T02:01Z",
    "InstanceEndTime": "2022-04-24T16:00Z",
    "InstanceExpired": false,
    "message"        : "{Instance JSON Data}"
  }
}
Note

The 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. The fields.message is a JSON serialized string.

X. Appendix

Please refer to the official Alibaba Cloud documentation: