Skip to content

Configuration Manual for the "Alibaba Cloud -SPOT" Collector

Before reading this, please refer to:

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

1. Configuration Structure

This script requires no additional configuration.

2. Data Reporting Format

After data is synchronized successfully, it can be viewed under the «Metrics» section in TrueWatch.

The example of reported data is as follows:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{
  "measurement": "aliyun_spot_price",
  "tags": {
    "InstanceType"      : "ecs.s6-c1m1.small",
    "NetworkType"       : "vpc",
    "RegionId"          : "cn-hangzhou",
    "Status"            : "Available",
    "StatusCategory"    : "WithStock",
    "ZoneId"            : "cn-hangzhou-h"
  },
  "fields": {
    "SpotPrice"         : "0.023"
  },
  "timestamp"           : 1671518220
}

Descriptions of some parameters are as follows:

tags.SpotPrice: Spot instance price

tags.Status (description of the availability zone status) value meanings:

Value Description
Available Resources are sufficient
SoldOut Resources are sold out

tags.StatusCategory (detailed description of the availability zone status based on inventory conditions) value meanings:

Value Description
WithStock Inventory is sufficient
ClosedWithStock Low inventory supply guarantee capability
WithoutStock Inventory sold out, resources will be replenished
ClosedWithoutStock Inventory sold out, and no replenishment of resources

Fields in tags and fields may change with subsequent updates

X. Appendix

Please refer to the official Alibaba Cloud documentation: