UIDs and TSUIDs
UIDs and TSUIDs
In OpenTSDB, when you write a timeseries data point, it is always associated with a metric and at least one tag name/value pair. Each metric, tag name and tag value is assigned a unique identifier (UID) the first time it is encountered or when explicitly assigned via the API or a CLI tool. The combination of metric and tag name/value pairs create a timeseries UID or TSUID.
UID
Types of UID objects include:
-
metric - A metric such as
sys.cpu.0
ortrades.per.second
-
tagk - A tag name such as
host
orsymbol
. This is always the "key" (the first value) in a tag key/value pair. - tagv - A t