OpenTsdb: Is Space character allowed in Metric and tag information

╄→尐↘猪︶ㄣ 提交于 2019-12-02 08:49:34

问题


I was working with openTsdb and came across with the issue that space character is not allowed in metric, tag(tagk) and even the values(tagv). Is there any way we can add space atleast in the value of tag?

I also referred: http://opentsdb.net/docs/build/html/user_guide/writing/index.html#metrics-and-tags


回答1:


Spaces are not allowed.

As per the documentation you referred:

Only the following characters are allowed: a to z, A to Z, 0 to 9, -, _, ., / or Unicode letters (as per the specification)

I suggest you should use '_' in stead of spaces.




回答2:


As of opentsdb version 2.3 there is support for specifying additional characters to allow via the config variable

tsd.core.tag.allow_specialchars = !@#$%^&*()_+{}|: <>?~`-=[]\;',./°

http://opentsdb.net/docs/build/html/user_guide/configuration.html gives more details



来源:https://stackoverflow.com/questions/33935320/opentsdb-is-space-character-allowed-in-metric-and-tag-information

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!