opentsdb 是否接受特殊字符,如度数符号 (°)、% 或 ²
Does opentsdb accept special characters like degree symbol (°), % or ²
我正在 post 将温度值从我的 java 代码转换为 opentsdb
。因此,在其中一个标签中,我想显示测量类型,例如读数是 °C
还是 °F
。所以我尝试 post 来自 java 的 unicode "\u00b0"
,虽然在 System.out.println
中我能够看到度数符号但是当我 post opentsdb
不接受该值。
我还阅读了这篇文章,其中定义了 opentsdb
.(在 Metrics and Tags section
中)接受的字符,并定义了它接受 Unicode
个字母。但是当我尝试发送 unicode
学位时它不起作用。
那么它接受这些字符的unicode
吗?我怎样才能送他们。
http://opentsdb.net/docs/build/html/user_guide/writing.html
以下规则适用于指标和标记值:
- 字符串区分大小写,即 "Sys.Cpu.User" 将与 "sys.cpu.user"
分开存储
- 不允许有空格。
- 只允许使用以下字符:a 到 z、A 到 Z、0 到 9、-、_、. 或 Unicode 字母(根据规范)
But in fact, other than above mentioned characters no other is supported by opentsdb.
从 opentsdb 2.3 版开始,支持通过配置变量指定允许的其他字符(来自 的交叉发布)
tsd.core.tag.allow_specialchars = !@#$%^&*()_+{}|: <>?~`-=[]\;',./°
http://opentsdb.net/docs/build/html/user_guide/configuration.html 提供更多详细信息
我正在 post 将温度值从我的 java 代码转换为 opentsdb
。因此,在其中一个标签中,我想显示测量类型,例如读数是 °C
还是 °F
。所以我尝试 post 来自 java 的 unicode "\u00b0"
,虽然在 System.out.println
中我能够看到度数符号但是当我 post opentsdb
不接受该值。
我还阅读了这篇文章,其中定义了 opentsdb
.(在 Metrics and Tags section
中)接受的字符,并定义了它接受 Unicode
个字母。但是当我尝试发送 unicode
学位时它不起作用。
那么它接受这些字符的unicode
吗?我怎样才能送他们。
http://opentsdb.net/docs/build/html/user_guide/writing.html
以下规则适用于指标和标记值:
- 字符串区分大小写,即 "Sys.Cpu.User" 将与 "sys.cpu.user" 分开存储
- 不允许有空格。
- 只允许使用以下字符:a 到 z、A 到 Z、0 到 9、-、_、. 或 Unicode 字母(根据规范)
But in fact, other than above mentioned characters no other is supported by opentsdb.
从 opentsdb 2.3 版开始,支持通过配置变量指定允许的其他字符(来自
tsd.core.tag.allow_specialchars = !@#$%^&*()_+{}|: <>?~`-=[]\;',./°
http://opentsdb.net/docs/build/html/user_guide/configuration.html 提供更多详细信息