Adding labels to data points
Labels are metadata attached to time series data points to provide additional context or information about the data. They are key-value pairs that help group, query, filter, or aggregate data. This makes it easier to manage and analyze large volumes of time-series data. For example, you might use labels to indicate the data source, measurement units, or the device or location from which the data was collected. By using labels, you can perform more granular and focused queries on your time-series data, making it easier to understand trends, relationships, and patterns.
Let’s apply a few labels to the mortensi.com site. Since its time series already exists, we can add labels by modifying the current time series as follows:
TS.ALTER mortensi.com LABELS dev python database redis
After applying the labels, the TS.INFO command for the mortensi.com time series will display them as shown here:
TS.INFO mortensi.com 1) "totalSamples" 2...