Hi,
I am not sure if I have fully understood the way how timeseries DBs like mimir should be used, or what kinds of behaviour I can expect from them. So, I am going to formulate a small scenario to demonstrate my dilemma.
Let’s say I have a sensor that measures the temperature and writes the measured value into a timeseries db like
temperature(id=“sensorId”):tempValue
When I open the Grafana Explore mode I can find the sensor by selecting the label id and by providing its identifier as label value. However, looking up sensor temperature values by identifier does not provide high user experience as sensor identifiers are not meant for humans.
Normally, a sensor is embedded into a business context and therefore in relation with further information like sensor name (not unique), sensor type, sensor vendor, business contract, location etc.
Users are more likely to use such variables when they are looking for the temperature of a sensor.
This however, as I see it, would require me to encode all these searchable attributes in the timeseries
temperature(id=“sensorId” name=“sensorName” location=“city” type=“S9600” vendor=“sensorVendor”):value
The problem with this approach is that if one of the attributes change,a new attribute is added, or an existing one becomes obsolete, a new timeseries is created and there is a “break” in the diagram.
What would be the best-practice to provide meta-information of a sensor to the user in the explorer mode while keeping the structure of the timeseries as simple as possible?
Thank you!