Hello,
I’d like to localize the names of my InfluxDB measures (now I’m using Grafana to display them)
I need some place to put the localization strings then I’m doing the the right replacements in Grafana.
How should I to organize the localization data in InfluxDB?
I have a simple InfluxDB bucket with some _measures like this:
--------------------------------------------
_measurement1
--------------------------------------------
_time _field _value tag1
--------------------------------------------
time1 VariableNameA value1 ....
time2 VariableNameA value2 ....
time3 VariableNameB value3 ....
time4 VariableNameB value4 ....
--------------------------------------------
My translation table is keyed by the variableName in the _field column and is something like this:
--------------------------------------------------------------
localizationTable
--------------------------------------------------------------
Variable Language1 language2
--------------------------------------------------------------
VariableNameA VariableALanguage1 VariableALanguage2
VariableNameB VariableBLanguage1 VariableBLanguage2
--------------------------------------------------------------
What is the best way to add this localization data in InfluxDB?
Should I consifer adding some tags with the languages (for a single _field the tag will be always the same for every tag column) like this?
--------------------------------------------------------------------------------
_measurement1
--------------------------------------------------------------------------------
_time _field _value tagLanguage1 tagLanguage2 tag1
--------------------------------------------------------------------------------
time1 VariableNameA value1 VariableALanguage1 VariableALanguage2 ....
....
--------------------------------------------------------------------------------
Or it is better to use some external data source like a CSV file or a DB with localization data?
Thanks