OpenTsdb:Metric 和标签信息中是否允许 Space 个字符

OpenTsdb: Is Space character allowed in Metric and tag information

我在使用 openTsdb 时遇到了 space 字符在度量、标签 (tagk) 甚至值 (tagv) 中不允许出现的问题。有什么方法可以在标签的值中至少添加 space 吗?

我还提到了:http://opentsdb.net/docs/build/html/user_guide/writing/index.html#metrics-and-tags

不允许有空格。

根据 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)

我建议您使用“_”代替空格。

从 opentsdb 2.3 版开始,支持通过配置变量指定允许的其他字符

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

http://opentsdb.net/docs/build/html/user_guide/configuration.html 提供更多详细信息