Closed Cpaulyz closed 10 months ago
Old configuration makes all devices have the same tag.
# 标签名的前缀 # TAG_NAME_PREFIX=tag_ # 定义设备标签值,所有设备相同,使用逗号分开,目前支持iotdb-0.12, iotdb-0.13, influxdb-2.x, timescaledb, tdengine # DEVICE_TAGS=
New configuration automatically generates different tags for different devices. Tags will be generated based on the hash value of the deviceName.
# 标签名数量 # TAG_NUMBER=0 # 标签名前缀 # TAG_KEY_PREFIX=tag_ # 标签值前缀 # TAG_VALUE_PREFIX=value_ # 每个标签值的取值种数,使用逗号分开,设置个数应与标签名数量相等。例如TAG_NUMBER=2,TAG_VALUE_CARDINALITY=50,10,说明第一个标签名可能有50种值,第二个标签名可能有10种值 # TAG_VALUE_CARDINALITY=
For example:
# 25000device # Tags: 品牌, 项目, 车型 TAG_NUMBER=3 TAG_KEY_PREFIX=tag_ TAG_VALUE_PREFIX=value_ TAG_VALUE_CARDINALITY=50,50,10
Old configuration makes all devices have the same tag.
New configuration automatically generates different tags for different devices. Tags will be generated based on the hash value of the deviceName.
For example: